In this chapter, we will delve deep into the world of I2C, also known as the Two-Wire Interface, TWI, in the Arduino world. This is quite a complicated system in which to use interrupts, but it can be done. This chapter starts easily with a discussion on device addresses – which occasionally can lead to confusion – followed by a simple polled example. This is then expanded to create a sketch using TWI to read and write from and to a temperature sensor before fully expanding our discussion to implement, with a little ...
12. TWI Interrupt
Get Arduino Interrupts: Harness the Power of Interrupts in Your Arduino and ATmega328 Code now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.