Skip to content

vectorcrumb/SparkFun_SX1508_Arduino_Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SX1508 IO Expander Arduino Library

Arduino library for the SX1508 IC. Refer to the original Sparkfun SX1509 IO Expander breakout library for more information. Registers have been updated for this fork.

SparkFun SX1509 IO Expander Breakout

SparkFun SX1509 IO Expander Breakout (SKU)

Please be aware that v3 of the library breaks previous version compatiblity on a few things:

  • Wire.begin() must be called explicitly within the Arduino sketch before io.begin() is called. This may break code that does not have Wire.begin().
  • io.begin() has been expanded to include io.begin(deviceAddress, wirePort, resetPin). This may break code where resetPin was the 2nd argument.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /extras - Additional documentation for the user. These files are ignored by the IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.

Documentation

Products that use this Library

  • BOB-13601 - SX1509 16 I/O Breakout Board (v2.0)
  • BOB-11502- (Retired) 16 I/O I2C port expander.

Version History

  • [V_3.x] - Incorporate PRs including the ability to pass in a wire port in begin().
  • V_2.0.1 - Version 2.0.1. More user-friendly function calls. Increased clock functionality. More examples. Mostly backwards compatible with older versions.
  • V_1.0.0 - Version 1.0.0

License Information

This product is open source!

The code is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!

Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

About

Arduino library for the SX1508 8-I/O GPIO expander.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.4%
  • C 5.6%