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 
13 {
14  private:
15  SX1509 sx1509; // Create an SX1509 object to be used throughout
16 
17  public:
18  byte begin(int inId, byte inAddress);
19  void beginPin(int inPin, PIN_TYPE inType);
20  void digitalWrite(int inPin, int inValue);
21  void analogWrite(int inPin, int inValue);
22  byte GetPinsNumber() { return 16; }
23 
24  public:
27 };
28 
29 //-------------------------------------------------------------------
30 #endif
31 #endif
32 //-------------------------------------------------------------------
void analogWrite(int inPin, int inValue)
void digitalWrite(int inPin, int inValue)
void beginPin(int inPin, PIN_TYPE inType)
virtual byte begin()