Hi everybody,
...
Fresh out of the bag, the DigisparkLCD BasicUsage example will not compile for me. Here's the errors:
...\Arduino\libraries\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp: In member function 'void LiquidCrystal_I2C::init_priv()':
...\Arduino\libraries\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp:68: error: 'Wire' was not declared in this scope
...\Arduino\libraries\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp: In member function 'void LiquidCrystal_I2C::expanderWrite(uint8_t)':
...\Arduino\libraries\LiquidCrystal_I2C\LiquidCrystal_I2C.cpp:260: error: 'Wire' was not declared in this scope
After some googling I concluded that I needed to #include<Wire.h> at the beginning of the sketch, so now the compile fails with these errors:
In file included from BasicUsage.ino:16:
C:\Program Files (x86)\Digispark Ready - Arduino 1.03\libraries\Wire/Wire.h:61: error: conflicting return type specified for 'virtual size_t TwoWire::write(const uint8_t*, size_t)'
C:\Program Files (x86)\Digispark Ready - Arduino 1.03\hardware\tiny-digispark\cores\tiny/Print.h:75: error: overriding 'virtual void Print::write(const uint8_t*, size_t)'
From a thread on Arduino forums I think the libraries were updated and return types changed from "void" to "size_t" to return the number of bytes written, and perhaps those libraries for never updated for the ATtiny?
Am I missing something simple? I would expect the example code to compile right out of the box, even if it doesn't work exactly right with the hardware I have laying around. I'm running 64-bit Win 7 on a Core2Duo.
Thanks!