shift register
Dependents: Enrico_newproject_copy Enrico_copy Enrico_copy2 Project_ORBE
Fork of Shifter by
Shifter.h@0:7af9b977e6e9, 2018-02-21 (annotated)
- Committer:
- billycorgan123
- Date:
- Wed Feb 21 19:37:59 2018 +0000
- Revision:
- 0:7af9b977e6e9
- Child:
- 3:4511084b5546
rev1.0
Who changed what in which revision?
User | Revision | Line number | New 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 | 0:7af9b977e6e9 | 16 | char shiftRegisters[25]; |
billycorgan123 | 0:7af9b977e6e9 | 17 | }; |
billycorgan123 | 0:7af9b977e6e9 | 18 | |
billycorgan123 | 0:7af9b977e6e9 | 19 | #endif |