This project demonstrates interfacing of SX1509 with 96Boards CE Platform using libmraa. SX1509 is a GPIO expander that uses the i2c interface to provide 16 GPIOs all of which are 8bit PWM compatable
- Dragonboard 410c or any of 96Boards CE
- SX1509 Module
- Connecting cables
- 4x LEDs
- Switch
- MRAA Library
$ sudo apt-get install libmraa-dev
$ git clone https://github.com/96boards-projects/libsx1509
$ cd libsx1509
$ make
$ ./sx1509
The libsx1509 library provides support for the SX1509 GPIO expander and builds on libmraa. It provides functions such as digitalRead digitalWrite and anaglogWrite in a similar fashion to that of Arduino IDE. For detailed info take a look at the sx1509.cpp and libsx1509.h files.