Example of work with mcp23017
(aka. cjmcu-2317
) GPIO expander with Espressif chips.
For this example I took a classic pushbutton and tried to connect it with Espressif board via GPIO expander on different Espressif boards:
cjmcu-2317 GPIO expander
Warning
Choose the corresponding options for your chip in
Cargo.toml
cargo espflash --release --monitor --target xtensa-esp32-none-elf
cargo espflash --release --monitor --target xtensa-esp32s2-none-elf
cargo espflash --release --monitor --target xtensa-esp32s3-none-elf
cargo espflash --release --monitor --target riscv32imac-unknown-none-elf