ATtiny85 support #3

wants to merge 1 commit into from

1 participant


Unlike a lot of people, who try Arduino and then end up moving in a direction of more power and more capability (bigger and better), I'm going in the opposite direction. :-) I've been getting into ATtiny see just how much I can squeeze out of these (um) tiny chips.

I did find one other library out there (LiquidCrystal_I2C) with TinyWireM support, but it's written for the PCF8574 IO expander, not the MCP23008. So that didn't work with the Adafruit LCD backpack...and I was determined to stick with that hardware and get it working with the ATtiny85 with the least amount of work possible. :-)

Turns out it was trivial. All I did was tweak Adafruit_MCP23008.cpp, using TinyWireM library calls in place of Wire calls, and badabing badaboom.

I've tested this with both 1 MHz and 8 MHz internal oscillator frequencies with both of the common flavors of ATtiny85 cores:

...and it works swimmingly. Please consider integrating this change to the library. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment