MCP4725 with Attin85
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Loulaw12
- Posts: 5
- Joined: Wed Sep 03, 2014 5:37 pm
MCP4725 with Attin85
Is there a way to modify the Adafruit library for the MCP 4725 to work with the Attiny85?
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: MCP4725 with Attin85
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.
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.
Please be positive and constructive with your questions and comments.