Simple 6-LED bar library. Provides some useful functions.
Simple 6 leds bar library. It allows you to control individual leds, and provides masks.
6LedBar.h@0:52b8975f1dd9, 2017-05-21 (annotated)
- Committer:
- kryksyh
- Date:
- Sun May 21 13:10:19 2017 +0000
- Revision:
- 0:52b8975f1dd9
- Child:
- 1:248129e96f43
Simple 6-LED bar library, provides some useful functions.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kryksyh | 0:52b8975f1dd9 | 1 | #ifndef LED_BAR_H |
kryksyh | 0:52b8975f1dd9 | 2 | #define LED_BAR_H |
kryksyh | 0:52b8975f1dd9 | 3 | |
kryksyh | 0:52b8975f1dd9 | 4 | #include "mbed.h" |
kryksyh | 0:52b8975f1dd9 | 5 | |
kryksyh | 0:52b8975f1dd9 | 6 | class LedBar { |
kryksyh | 0:52b8975f1dd9 | 7 | |
kryksyh | 0:52b8975f1dd9 | 8 | public: |
kryksyh | 0:52b8975f1dd9 | 9 | LedBar(PinName p0, |
kryksyh | 0:52b8975f1dd9 | 10 | PinName p1, |
kryksyh | 0:52b8975f1dd9 | 11 | PinName p2, |
kryksyh | 0:52b8975f1dd9 | 12 | PinName p3, |
kryksyh | 0:52b8975f1dd9 | 13 | PinName p4, |
kryksyh | 0:52b8975f1dd9 | 14 | PinName p5); |
kryksyh | 0:52b8975f1dd9 | 15 | |
kryksyh | 0:52b8975f1dd9 | 16 | }; |
kryksyh | 0:52b8975f1dd9 | 17 | |
kryksyh | 0:52b8975f1dd9 | 18 | |
kryksyh | 0:52b8975f1dd9 | 19 | #endif //LED_BAR_H |