Skip to content

mraa compatible c++ library for sx1509 gpio expander

Notifications You must be signed in to change notification settings

96boards-projects/libsx1509

This branch is 2 commits ahead of ric96/libsx1509:master.

Repository files navigation

libsx1509

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

Table of Contents

1. Hardware requirements:

  1. Dragonboard 410c or any of 96Boards CE
  2. SX1509 Module
  3. Connecting cables
  4. 4x LEDs
  5. Switch

2. Software

2.1 Operating System

2.2 Package Dependencies

  1. MRAA Library
$ sudo apt-get install libmraa-dev

3. Building and Running:

$ git clone https://github.com/96boards-projects/libsx1509
$ cd libsx1509
$ make
$ ./sx1509

4. Conclusion:

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.

Releases

No releases published

Packages

No packages published

Languages

  • C++ 55.0%
  • C 44.5%
  • Makefile 0.5%