Accessories
Arduino for motors and lights library.
PortExpander74HC595.hpp
1 //-------------------------------------------------------------------
2 #ifndef __portexpander74HC595_H__
3 #define __portexpander74HC595_H__
4 //-------------------------------------------------------------------
5 
6 #ifndef NO_EXPANDER_74HC595
7 
8 #include "PortExpander.hpp"
9 #include "ShiftRegister74HC595.h" // Include 74HC595 library
10 
16 {
17  private:
18  ShiftRegister74HC595 *psr; // Create an 74HC595 object to be used throughout
19 
20  public:
29  byte begin(int inID, int numberOfShiftRegisters, int serialDataPin, int clockPin, int latchPin);
34  void beginPin(int inPin, PIN_TYPE inType);
35 
40  void digitalWrite(int inPin, int inValue);
46  void analogWrite(int inPin, int inValue);
47 
48  public:
51 };
52 
53 //-------------------------------------------------------------------
54 #endif
55 #endif
56 //-------------------------------------------------------------------
void analogWrite(int inPin, int inValue)
void digitalWrite(int inPin, int inValue)
void beginPin(int inPin, PIN_TYPE inType)
virtual byte begin()