This is test version of Pokemongo game. ELEC 2645 final project.

Dependencies:   Tone

Committer:
shalwego
Date:
Thu Apr 15 15:35:12 2021 +0000
Revision:
0:819c2d6a69ac
Issue about music playing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shalwego 0:819c2d6a69ac 1 #ifndef SHIFTREG_H
shalwego 0:819c2d6a69ac 2 #define SHIFTREG_H
shalwego 0:819c2d6a69ac 3
shalwego 0:819c2d6a69ac 4 #include <mbed.h>
shalwego 0:819c2d6a69ac 5
shalwego 0:819c2d6a69ac 6 /** A simple serial driver for a shift register that uses only three digital out pins.
shalwego 0:819c2d6a69ac 7 * Based on a fork of Ollie8/ShiftOut
shalwego 0:819c2d6a69ac 8 */
shalwego 0:819c2d6a69ac 9 class ShiftReg {
shalwego 0:819c2d6a69ac 10
shalwego 0:819c2d6a69ac 11 public :
shalwego 0:819c2d6a69ac 12
shalwego 0:819c2d6a69ac 13 ShiftReg();
shalwego 0:819c2d6a69ac 14 ~ShiftReg();
shalwego 0:819c2d6a69ac 15 void write(int data);
shalwego 0:819c2d6a69ac 16
shalwego 0:819c2d6a69ac 17 private :
shalwego 0:819c2d6a69ac 18 DigitalOut *clkout;
shalwego 0:819c2d6a69ac 19 DigitalOut *dataout;
shalwego 0:819c2d6a69ac 20 DigitalOut *latchout;
shalwego 0:819c2d6a69ac 21 };
shalwego 0:819c2d6a69ac 22
shalwego 0:819c2d6a69ac 23 #endif
shalwego 0:819c2d6a69ac 24
shalwego 0:819c2d6a69ac 25 // test!!