SX1509 I2C 16-channel GPIO expander PWM + keypad

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
easylab4kids
Posts: 20
Joined: Mon Aug 12, 2019 10:58 am
Location: Ellisras, Suid-Afrika ("South Africa")

SX1509 I2C 16-channel GPIO expander PWM + keypad

Post by easylab4kids » Wed Oct 28, 2020 11:51 pm

Micropython driver for 16-channel I2C PWM GPIO expander.
https://github.com/pappavis/micropython-sx1509-library

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
met vriendelijke groet,
Easylab4kids.nl

Post Reply