TinyWireM I2C Library

repository·master·Indexed 42 days ago

https://github.com/adafruit/tinywirem

A lightweight I2C library for ATtiny-based microcontrollers, such as the Adafruit Trinket and Gemma. It provides an API compatible with the standard Arduino Wire library, utilizing write() instead of send() and featuring an increased buffer size to support Adafruit_LEDBackpack.

Tokens
126
Snippets
0
Records
1
Agent score
3%

What's inside TinyWireM

  1. Overview of TinyWireM

    master

    TinyWireM is an I2C library specifically designed for ATtiny microcontrollers (such as the Adafruit Trinket or Gemma). It is an adaptation of BroHogan's USI I2C code, modified for consistency with the standard Arduino Wire library. Key differences include:

    • Uses write() instead of send() to match the Arduino 1.0 Wire API.
    • Includes a slightly increased buffer size to support Adafruit_LEDBackpack usage.

    On Trinket boards, the I2C pins are:

    • SDA (Data): Pin #0
    • SCK (Clock): Pin #2