MCP4725 with Attin85

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Loulaw12
 
Posts: 5
Joined: Wed Sep 03, 2014 5:37 pm

MCP4725 with Attin85

Post by Loulaw12 »

Is there a way to modify the Adafruit library for the MCP 4725 to work with the Attiny85?

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: MCP4725 with Attin85

Post by adafruit_support_mike »

The code works as-is.

The ATtiny85 doesn't have a dedicated I2C peripheral, so you have to use the TinyWireM library. That used to require code modification before board support packages were introduced, but now TinyWireM is built into the ATtiny85 BSP under the name 'Wire'.

I just compiled the MCP4725 example sketches for an ATtiny85 Trinket, and only needed to comment out the lines that used Serial.

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”