TinyWireMCP23008 – MCP23008 library for ATtiny85 microcontroller
If you want to know more…
If you want to know more about ATtiny85 microcontroller and how to upload sketches to it, you may have a look to ATtiny85 vs ATmega328.
TinyWireMCP23008 was tested (and works) with a 8 MHz ATtiny85 and I2C standard bus mode and I2C fast bus mode.
TinyWireMCP23008 was not tested with ATtiny85 other frequencies, but should work (I can’t guarantee that fast bus mode will work with a 1 MHz ATtiny85).
If you need to use this library on an ATtiny85 which is not running at 8 MHz, or don’t want/need to use fast mode, all details on how to change theses settings are into the README.md file on GitHub repository.
TinyWireMCP23008 should work with other ATtiny microcontrollers.
TinyWireMCP23008 provides an example sketch to show how to use the library.
Example provided with TinyWireMCP23008 use few items:
- An ATtiny85 microcontroller.
- An MCP23008 I2C port expander.
- A 330Ω resistor.
- Two 4.7kΩ resistors (pull up resistors for I2C lines).
- A LED.
For more detail: TinyWireMCP23008 – MCP23008 library for ATtiny85 microcontroller
For All Your PCB Need, One-stop PCB Solution Services Appear:
EasyEDA: free PCB design tool, 200,000+ engineers are using
PCBs: 10pcs 2-layer 10x10cm only $8.21, on-time global shipping
Components: save 50% on cost, save on freight if shipped with ordered PCBs
Current Project / Post can also be found using:
- ATtiny45 circuit application schematic circuit image PDF