Accessories
Arduino for motors and lights library.
PortExpanderSX1509.hpp
1 //-------------------------------------------------------------------
2 #ifndef __portexpandersx1509_H__
3 #define __portexpandersx1509_H__
4 //-------------------------------------------------------------------
5 
6 #ifndef NO_EXPANDER_SX1509
7 
8 #include "PortExpander.hpp"
9 #include <Wire.h> // Include the I2C library (required)
10 #include "SparkFunSX1509.h" // Include SX1509 library
11 
16 {
17  private:
18  SX1509 sx1509; // Create an SX1509 object to be used throughout
19 
20  public:
26  byte begin(int inId, byte inAddress);
31  void beginPin(int inPin, PIN_TYPE inType);
36  void digitalWrite(int inPin, int inValue);
41  void analogWrite(int inPin, int inValue);
42 
43  public:
46 };
47 
48 //-------------------------------------------------------------------
49 #endif
50 #endif
51 //-------------------------------------------------------------------
void analogWrite(int inPin, int inValue)
void digitalWrite(int inPin, int inValue)
void beginPin(int inPin, PIN_TYPE inType)
virtual byte begin()