© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
N. DunbarArduino InterruptsMaker Innovations Serieshttps://doi.org/10.1007/978-1-4842-9714-8_12

12. TWI Interrupt

Norman Dunbar1  
(1)
Rawdon, UK
 

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 ...

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.