Tamas Titusz Ban
/
ELEC1620_ExamTemplate_2019
Template for the ELEC1620 End of year exam
ShiftReg/ShiftReg.h
- Committer:
- el16ttb
- Date:
- 2019-03-22
- Revision:
- 0:54721f063ac8
File content as of revision 0:54721f063ac8:
#ifndef SHIFTREG_H #define SHIFTREG_H #include <mbed.h> /** A simple serial driver for a shift register that uses only three digital out pins. * Based on a fork of Ollie8/ShiftOut */ class ShiftReg { public : ShiftReg(); ~ShiftReg(); void write(int data); private : DigitalOut *clkout; DigitalOut *dataout; DigitalOut *latchout; }; #endif