Yudong Xiao
/
pokemon
This is test version of Pokemongo game. ELEC 2645 final project.
Diff: pokeball/ShiftReg.h
- Revision:
- 0:819c2d6a69ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pokeball/ShiftReg.h Thu Apr 15 15:35:12 2021 +0000 @@ -0,0 +1,25 @@ +#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 + +// test!! \ No newline at end of file