shift register

Dependents:   Enrico_newproject_copy Enrico_copy Enrico_copy2 Project_ORBE

Fork of Shifter by marco valli

Committer:
billycorgan123
Date:
Wed May 30 14:57:03 2018 +0000
Revision:
3:4511084b5546
Parent:
0:7af9b977e6e9
changed timing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
billycorgan123 0:7af9b977e6e9 1 #ifndef Shifter_h
billycorgan123 0:7af9b977e6e9 2 #define Shifter_h
billycorgan123 0:7af9b977e6e9 3
billycorgan123 0:7af9b977e6e9 4 // Include the standard types
billycorgan123 0:7af9b977e6e9 5 #include "mbed.h"
billycorgan123 0:7af9b977e6e9 6
billycorgan123 0:7af9b977e6e9 7 // Define the Shifter class
billycorgan123 0:7af9b977e6e9 8 class Shifter
billycorgan123 0:7af9b977e6e9 9 {
billycorgan123 0:7af9b977e6e9 10 public:
billycorgan123 0:7af9b977e6e9 11 void write();
billycorgan123 0:7af9b977e6e9 12 void setPin(int, bool);
billycorgan123 0:7af9b977e6e9 13 void setAll(bool);
billycorgan123 0:7af9b977e6e9 14 void clear();
billycorgan123 0:7af9b977e6e9 15 private:
billycorgan123 3:4511084b5546 16 char shiftRegisters[16];
billycorgan123 0:7af9b977e6e9 17 };
billycorgan123 0:7af9b977e6e9 18
billycorgan123 0:7af9b977e6e9 19 #endif