Pong game for ELEC1620 board.

lib/ShiftReg.h

Committer:
eencae
Date:
2021-03-05
Revision:
1:d63a63f0d397

File content as of revision 1:d63a63f0d397:

#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!!