Craig Evans
/
ELEC2645_Pong2021
Pong game for ELEC1620 board.
Embed:
(wiki syntax)
Show/hide line numbers
ShiftReg.h
00001 #ifndef SHIFTREG_H 00002 #define SHIFTREG_H 00003 00004 #include <mbed.h> 00005 00006 /** A simple serial driver for a shift register that uses only three digital out pins. 00007 * Based on a fork of Ollie8/ShiftOut 00008 */ 00009 class ShiftReg { 00010 00011 public : 00012 00013 ShiftReg(); 00014 ~ShiftReg(); 00015 void write(int data); 00016 00017 private : 00018 DigitalOut *clkout; 00019 DigitalOut *dataout; 00020 DigitalOut *latchout; 00021 }; 00022 00023 #endif 00024 00025 // test!!
Generated on Thu Jul 14 2022 15:46:36 by 1.7.2