Skip to content

When to use TinyWire vs Wire in ATTinyCore (1.1.3+)? #48

@lowell80

Description

@lowell80

For someone who's writing a fresh I2C slave implementation what are the pros/cons of using TinyWireS vs the (now) built-in transparent support for using Wire (as of ATTinyCore 1.1.3 and later)? Are there unique features, device support, or API advantages to using TinyWire not covered by ATTinyCore?

I'm trying to make a simple infrared receiver that relays IR codes over the I2C bus to another arduino controlling some WS2812s via FastLED. But beyond my immediate use case, I realized this may be a question others would be interesting in as well.

I was under the impression that TinyWire was the only (or go-to) option until I stumbled upon this:
https://github.com/SpenceKonde/ATTinyCore/blob/master/README.md#i2c-support

I2C functionality can be achieved with the hardware USI. As of version 1.1.3 this is handled transparently via the special version of the Wire library included with this core.

I see that that ATTiny85 is supported, and I confirmed that I could compile the slave_sender example for the Tiny85, but haven't looked look any further.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions