Examples š”
A set of minimal projects is provided in the examples directory. Each subfolder demonstrates the driver on a different platform.
- arduino/ ā Sketch using the Arduino
Wirelibrary. -
esp32/ ā ESP-IDF application.
- stm32/ ā STM32 HAL example.
After copying an example into your project directory, build it with the normal
toolchain commands for that platform. For example idf.py build for the ESP32
or the Arduino IDE for AVR boards. Flash the resulting firmware to quickly test
that the expander is working as expected.
To build an example, copy the code into your own project and adjust the I²C pins and device address for your hardware. The examples mirror the instructions in Platform Integration.
Navigation ā¬ ļø Platform Integration ⢠Back to Index ⢠ā”ļø Hardware Overview