Attiny88 wire library11/25/2023 #define Use_TinyWire 1 // if defined uses TiniWireM.h io. #define Tiny 1 // if defined compile for ATTiny85 io. ATTiny85 running at 16MHz(PLL) and burned bootloader compiled succesfully with wire.h or TinyWireM.hĬode: Select all // using ATTinycore (which supports Wire.h).tClock() to set the I2C clock speed to 100kHz and 10kHz, which should be compatible with the ATTiny85.checked the ATTiny is running at 16MHz : Yes.wrote a i2c scanner that displays the found address binairy on the led strip but it finds nothing.Tried using TinyWireM.h and wire.h which both compiles OK. I use i2c connections that I used in other projects: SCL pin4 and SDA pin0. The next problem is that the TCS3472 somehow does not initialise. At first I encountered some problems compiling the project because the "Adafruit_TCS34725.h" is using the arduino wire library, but finally succeeded compiling it successfull by using ATTinycore with options Board: ATTiny/25/45/85(no bootloader) and Programmer: Arduino as ISP. I am trying to transfer this project with TCS3472 color sensor from Arduino Nano to ATTiny85.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |