3 ms·
It'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 peri
by ctz 9y ago
It'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...