Closed Shdwdrgn closed 6 years ago
it works if you use the Wire library we have in our Arduino trinket/gemma board support package
https://github.com/adafruit/Adafruit_Arduino_Boards/tree/master/libraries/Wire
that library implements both tinywire and plain wire at once
As mentioned, I already tried the TinyWireM library, with the same results.
To clear things up I created a new copy of arduino-1.6.12. In the libraries folder I copied Adafruit-PWM-Servo-Driver-Library-master and TinyWireM-master, then started Arduino IDE. The board selected is ATtiny25/45/85 with an 8Mhz internal clock as shown in the paste above. From the examples folder I opened servo.ino and clicked the button to verify the code. It comes back in just a couple seconds with the same error as pasted above.
Because this is still the same version number as I was using before, my Arduino IDE has several different cores for attiny boards installed. I could remove them from the preferences pane if there is something else I should be using. Which core are you using? Have you installed anything else to allow the code to compile?
you dont want TinyWire, you want just our plain Wire which integrates TinyWireM, it works for our Arduino AVR board kit only! you'll have to do some hacking to add support for other boards. but we don't have a guide or tutorial on how to do so!
Thanks, I finally got it to compile under both the lilypad and gemma boards.
I am trying to compile the servo.ino example for an ATtiny85 board, however there seems to be no I2C support despite trying various libraries and board cores.
I have tried this on Arduino IDE 1.6.12 and 1.8.5. I have tried using attiny cores from the following: https://github.com/SpenceKonde/ATTinyCore https://github.com/damellis/attiny
I have attempted to compile this while including Wire.h, TinyWireM.h, and TinyWire.h (one at a time of course). TinyWire.h (available at https://github.com/lucullusTheOnly/TinyWire) seems to be the newest code and is supposed to provide the I2C library via attiny's USI interface. When I attempt to verify the code, I get the following error message:
The readme for this library states that it is compatible with the attiny85. Could someone please provide updated directions on what libraries are required together in order to compile the examples for this servo driver board?