Trying to get two Sparkfun SX1509 breakout boards connected to a Photon via I2C, to be used as 32 digital inputs. This is my first time using I2C, and I’m therefore a little “noobish” in that department. I’m using the Atom/Particle Dev.
Here’s what I’ve got so far:
I’ve got the address jumpers configured, so that ExpanderA is 0x3E, and ExpanderB is 0x3F.
SDA is connected to Particle DO
SCK is connected to Particle D1
I’ve put Wire.begin(); inside of void setup()
So I guess my questions are:
- What files/libraries do I need to include?
- How do I include said libraries using the Atom/Particle Dev (not the web version)?
- There is an SX1509 Arduino library, but I’m not sure how to include it?
Thanks so much for any advice!