ShiftReg library (74HC595, NUJ3711)
ShiftReg.h
- Committer:
- kysiki
- Date:
- 2015-10-24
- Revision:
- 0:5f1670338bef
- Child:
- 1:3741bc0fbba8
File content as of revision 0:5f1670338bef:
#ifndef MBED_SHIFTREG_H #define MBED_SHIFTREG_H #define HC595 //#define NJU3711 #include "mbed.h" class ShiftReg { public: ShiftReg(PinName dataPin, PinName stbPin, PinName clkPin, PinName clrPin); void send_data(uint8_t data); private: DigitalOut DATA; DigitalOut STB; DigitalOut CLK; DigitalOut CLR; void shiftOut(uint8_t data); }; #endif