So seems like Wire.h is not working so I downloaded TinyWire libraries and changed the Wire.h to TinyWire.h but it didn't work either.Īlso, I thought ATtiny85 comes with SCL and SDA pin as default, is this understanding correct? TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) Įrror compiling for board ATtiny25/45/85. 〜/libraries/Wire/src/utility/twi.c:426:40: error: 'TWEN' undeclared (first use in this function) 〜/libraries/Wire/src/utility/twi.c:77:16: error: 'SCL' undeclared (first use in this function) 〜/libraries/Wire/src/utility/twi.c:76:16: error: 'SDA' undeclared (first use in this function) This is exactly the same as the Adafruite library's example, except comment off the serial part as looks like the code doesn't like that part. Serial.println("DRV2605 Audio responsive test") ĭrv.writeRegister8(DRV2605_REG_CONTROL1, 0x20) ĭrv.writeRegister8(DRV2605_REG_CONTRO元, 0xA3) So I wanted to put the code below to ATtiny85, but it is returning an error. I want to shrink my Arduino to ATtiny as I am working on a wearable project.Īdafruit DRV2605L motor driver: works fine on Arduino
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |