0

MCP4725 with Attin85
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MCP4725 with Attin85

by Loulaw12 on Thu Jul 01, 2021 1:36 pm

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

Loulaw12
 
Posts: 5
Joined: Wed Sep 03, 2014 5:37 pm

Re: MCP4725 with Attin85

by adafruit_support_mike on Fri Jul 02, 2021 10:01 pm

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.

adafruit_support_mike
 
Posts: 63679
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.