Week 5, since we already have SCL (the clock line), SDA (the data line), and power and ground available to other boards on the 2x3 ISP header. I made a new board with the ATTiny44-basically the same as the one from I decided to work with I2C this week since it's useful. I am using Arduino 1.8.2.Week Eleven: Networking and Communications Wire.begin() // Initiate the Wire library Also, in spite of having changed the frequency to both 100 and 400 kHz i have this weird 1.953 kHz clock. Starts fine, then appears to go wonky, after a few of these wonky bursts the lines go silent. This is how the messed up I2C line looks in both cases. Compiled fine, loaded the binary and got the same behaviour. Second attempt was with the cores from Drazzy ATTinycore which came with its own Wire library. Compiled fine, loaded the binary with avrdude, got a few first TWI communication fine, then it started trashing. So i went into C:\Program Files\Arduino\hardware\arduino\avr\libraries, grabbed the Wire folder and copied it into C:\Program Files\Arduino\libraries. ![]() It is mounted on my own board (which worked fine if I dropped an ATMega instead).Įdited - prev screencapture were from an ungrounded logic analyzerįirst tried the Femtocow ATTiny - it has complained about no Wire library at the #include Wire.h line. ![]() This is the MCU: - it advertises a hardware I2C interface, but I am struggling with it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |