IHS1.1-STM32F303K8
CLED.h@1:62baf2ea5573, 2020-10-23 (annotated)
- Committer:
- maro
- Date:
- Fri Oct 23 06:37:09 2020 +0000
- Revision:
- 1:62baf2ea5573
- Parent:
- 0:0fcc82d7750c
Blinking indicator added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
maro | 0:0fcc82d7750c | 1 | #ifndef CLED_H |
maro | 0:0fcc82d7750c | 2 | #define CLED_H |
maro | 0:0fcc82d7750c | 3 | #include "Sensor.h" |
maro | 0:0fcc82d7750c | 4 | |
maro | 0:0fcc82d7750c | 5 | // *************************** CLED ******************************** |
maro | 0:0fcc82d7750c | 6 | class CLED { |
maro | 0:0fcc82d7750c | 7 | public: |
maro | 0:0fcc82d7750c | 8 | CLED(int ver=10); |
maro | 1:62baf2ea5573 | 9 | void set(byte* ary12, bool indiRow = false); |
maro | 0:0fcc82d7750c | 10 | void set(byte val12); |
maro | 0:0fcc82d7750c | 11 | |
maro | 0:0fcc82d7750c | 12 | private: |
maro | 0:0fcc82d7750c | 13 | void indiBlink(); |
maro | 0:0fcc82d7750c | 14 | const byte* color; |
maro | 0:0fcc82d7750c | 15 | static const byte c10[7]; |
maro | 0:0fcc82d7750c | 16 | static const byte c11[7]; |
maro | 0:0fcc82d7750c | 17 | static const byte INDI_COLOR; |
maro | 1:62baf2ea5573 | 18 | bool inOn; |
maro | 0:0fcc82d7750c | 19 | }; |
maro | 0:0fcc82d7750c | 20 | |
maro | 0:0fcc82d7750c | 21 | #endif |