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  byte numberOfShiftRegisters;
20 
21  public:
30  byte begin(int inID, int numberOfShiftRegisters, int serialDataPin, int clockPin, int latchPin);
35  void beginPin(int inPin, PIN_TYPE inType);
36 
41  void digitalWrite(int inPin, int inValue);
47  void analogWrite(int inPin, int inValue);
50  byte GetPinsNumber() { return 8 * this->numberOfShiftRegisters; }
51 
52  public:
55 };
56 
57 //-------------------------------------------------------------------
58 #endif
59 #endif
60 //-------------------------------------------------------------------
void analogWrite(int inPin, int inValue)
void digitalWrite(int inPin, int inValue)
void beginPin(int inPin, PIN_TYPE inType)
virtual byte begin()