4 ms·
It's amazing how (comparatively) convoluted I2C is on platforms without the Wire library support you see on Atmel platforms. That's not to say that such platfo
by iuguy 10y ago
It's amazing how (comparatively) convoluted I2C is on platforms without the Wire library support you see on Atmel platforms.
That's not to say that such platforms are bad (MSP430 has it's advantages and disadvantages depending on what you want to do with it), but more of a testament to the Wire library.
- ctz 10y agoIt's not too surprising that a high-level I2C abstraction looks less convoluted than a register-level I2C driver. Here's the equivalent code for the Atmel peripheral: https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/libraries/Wire/src/utility/twi.c https://github.com/arduino/Arduino/blob/master/hardware/ardu...