![]() ![]() USAGE is modeled after the standard Wire library. ![]() NOTE! - It's very important to use pullups on the SDA & SCL lines! More so than with the Wire lib. Thanks to 'jkl' for the gcc version of Atmel's USI_TWI_Master code I added Atmel's original Device dependant defines section back into USI_TWI_Master.h ![]() I am using Arduino 1.8.2.TinyWireM.h - a wrapper(+) class for TWI/I2C Master library for the ATtiny on Arduino BroHogan - brohoganx10 at gmail dot com 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. i2c library for new ATTINY series uCs as a replacement for wire library with less footprint. 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. An efficient optimised i2c library for new ATTINY series uCs. SPI Serial Interface (16,17,18,19 PINS) Can be used for programming this controller I2C or Two-wire Serial Interface (27,28 PINS) Can be used to connect peripheral devices and sensors Note: Complete technical details can be found in the ATtiny88 Datasheet linked at the bottom of this page. 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 |