digistump / DigistumpArduino

Files to add Digistump support (Digispark, Pro, DigiX) to Arduino 1.6.X (1.6.5+)
934 stars 377 forks source link

TwoWire not defined #121

Closed bhelterline closed 4 years ago

bhelterline commented 4 years ago

The avr version of wire does not implement the TwoWire class, but rather the USI_TWI class. Some libraries reference the TwoWire class directly so they break. Adding this one #define statement at the end of the file will fix this problem.

extern USI_TWI Wire;

define TwoWire USI_TWI // add this line

endif