With this sketch you can control pins of a remote Arduino board through ESPHome. The Arduino acts as a port expander, allowing you to use more pins than a standard ESP8266/ESP32 has. The Arduino is ...
#define REG_OUT_DEFAULT_VAL ((REG_WR_OC_DEFAULT_VAL << 8) | REG_WR_IO_DEFAULT_VAL) #define REG_DIR_DEFAULT_VAL (0xFFFU) #define REG_WR_SET_BIT_IO_OE (1U << 0) #define ...
A while ago I received a couple of I/O port expander modules that use the I 2 C protocol. Using that Chinese module, you can use only the SDA and SCL pins of your ...