HOME / TUTORIALS /SX1509 I/O EXPANDER BREAKOUT HOOKUP GUIDE
https://learn.sparkfun.com/tutorials/sx … -guide/all
I downloaded the SX1509 Arduino Library from this page but there was no Wire.h header file and library?
HOME / TUTORIALS /SX1509 I/O EXPANDER BREAKOUT HOOKUP GUIDE
https://learn.sparkfun.com/tutorials/sx … -guide/all
I downloaded the SX1509 Arduino Library from this page but there was no Wire.h header file and library?
The Wire library should be part of the standard Arduino distribution. On my PC, it is in
C:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire\src
but the location may vary depending on the processor that your Arduino uses.
What flavor of Arduino are you working with?
/mike
I have never used Arduino.
I need to follow along SX1509 I/O Expander tutorial. I need to connect SX1509 to Arduino and read source code including wire.h library.
How do I get started with Arduino?
Have you checked GitHub? I don’t know if I’m allowed to make a link here
I checked GitHub link provided in SX1509 I/O Expander Tutorial. Wire.h library isn’t in there.
As /mike said, wire.h is part of standard Arduino distribution. I just need to know how to get started with Aruduino? What distribution do I need. What Arduino board, IDE, source code, etc.?
What processor were you intending to use with the IO expander? It should either have an I2C library (it may be called by another name like TWI since I2C is trademarked…) or some sample code for driving an on-chip i2c peripheral. Worst comes to worst, you can write bit-banging i2c code and just use two GPIO pins, but that would be a bit more work.
If you want to go with Arduino, I would download the standard distribution from arduino.cc - that would come with IDE, compilers, and example code including i2c examples. For getting started, I would use an Arduino UNO/Redboard or Nano (something that is cheap and has an on-board serial interface to simplify programming). Depending on what you are trying to do with the expander, there may be better choices, especially if you are planning on using Wifi or Bluetooth.
/mike
What processor were you intending to use with the IO expander?
The Processor wired to the Arduino board that I will purchase.
Thank you! I’ll download standard Arduino distribution so I can get wire.h libraries.
The wire.h library allows you to communicate with i2c/twi devices, on the Arduino boards with a layout R3, the SDA (data line) and SCL (clock line) are on the pin headers close to the AREF pin. The Arduino Due has two I2C / TWI interfaces SDA1 and SCL1 are near to the AREF pin and the additional one is on pins 20 and 21.