Page 1 of 1

SX1509 I2C 16-channel GPIO expander PWM + keypad

Posted: Wed Oct 28, 2020 11:51 pm
by easylab4kids
Micropython driver for 16-channel I2C PWM GPIO expander.

Chip features;
- 16-channel with PWM & "breathing"
- Voltages 1.2V to 3.6V with tolerance for upto 5.5V
- Support for 8x8 keypad and debouncing.

Note: its best suited for ESP32 as an ESP8266 gives memory allocation error after first use.

Its my very first attempt at a Micropython driver, which works best on ESP32. Code was taken 1-on-1 from the Sparkfun C++ code. I'm sure someone can improve if so, let me know.

Original topic here
#easylab4kids #sx1509