Fork of lichtspiel for mbed
Dependencies: PololuLedStrip mbed
EffectPlugs.h@0:8dc213146b30, 2018-05-19 (annotated)
- Committer:
- thegink
- Date:
- Sat May 19 14:27:12 2018 +0000
- Revision:
- 0:8dc213146b30
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thegink | 0:8dc213146b30 | 1 | #ifndef EFFECT_PLUGS_H |
thegink | 0:8dc213146b30 | 2 | #define EFFECT_PLUGS_H |
thegink | 0:8dc213146b30 | 3 | |
thegink | 0:8dc213146b30 | 4 | #include "mbed.h" |
thegink | 0:8dc213146b30 | 5 | #include "board.h" |
thegink | 0:8dc213146b30 | 6 | |
thegink | 0:8dc213146b30 | 7 | class EffectPlugs { |
thegink | 0:8dc213146b30 | 8 | public: |
thegink | 0:8dc213146b30 | 9 | EffectPlugs(uint8_t _num, DigitalInOut *_pins); |
thegink | 0:8dc213146b30 | 10 | uint8_t pluggedConnection(); |
thegink | 0:8dc213146b30 | 11 | |
thegink | 0:8dc213146b30 | 12 | private: |
thegink | 0:8dc213146b30 | 13 | uint8_t num; |
thegink | 0:8dc213146b30 | 14 | DigitalInOut* pins; |
thegink | 0:8dc213146b30 | 15 | }; |
thegink | 0:8dc213146b30 | 16 | |
thegink | 0:8dc213146b30 | 17 | #endif |