Features
Although all the important signals of the components of the Kode Dot are connected to the pins of the ESP32-S3, there are some less important signals that do not fit. The IO expander is a component that has 16 programmable pins and to which the rest of the signals are connected that, or are of low speed or that are not very relevant.Connection diagram
The pins of the expander are controlled by the ESP32-S3 through the I2C bus. In addition, it has an interrupt pin that is connected to the ESP32-S3 to know when there has been a change in one of its pins. The IO expander is connected to the ESP32-S3 in the following way:The expander has the address 0x20 on the I2C bus.
Most of the signals are interrupt signals of the different integrated circuits or buttons and in the examples of the following sections it is implemented the reading of these signals.
Recommended libraries
Arduino
ESP-IDF
Example code
With this code you can test the operation of the expander of pins. When you press the down button, a message will be printed on the serial monitor.expander_test.ino

