Thomas Milburn
/
FBRDash-tom
can't push chnages :(
Fork of FBRDash by
inc/LEDS.h@5:177520d43c87, 2012-10-14 (annotated)
- Committer:
- tomontoast
- Date:
- Sun Oct 14 21:09:49 2012 +0000
- Revision:
- 5:177520d43c87
- Parent:
- 2:825f572902c6
14/10/12
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tomontoast | 5:177520d43c87 | 1 | #ifndef FBRDASH_LEDS_H |
tomontoast | 5:177520d43c87 | 2 | #define FBRDASH_LEDS_H |
tomontoast | 5:177520d43c87 | 3 | |
tomontoast | 5:177520d43c87 | 4 | #include "mbed.h" |
tomontoast | 5:177520d43c87 | 5 | |
tomontoast | 5:177520d43c87 | 6 | class LEDS |
tomontoast | 5:177520d43c87 | 7 | { |
tomontoast | 5:177520d43c87 | 8 | public: |
tomontoast | 5:177520d43c87 | 9 | LEDS(PwmOut _pins[]); |
tomontoast | 5:177520d43c87 | 10 | void refresh(float rpm); |
tomontoast | 5:177520d43c87 | 11 | |
tomontoast | 5:177520d43c87 | 12 | static const int NUM_LEDS = 6; |
tomontoast | 5:177520d43c87 | 13 | |
tomontoast | 5:177520d43c87 | 14 | private: |
tomontoast | 5:177520d43c87 | 15 | PwmOut* pins; |
tomontoast | 5:177520d43c87 | 16 | |
tomontoast | 5:177520d43c87 | 17 | //revs represented by last red LED |
tomontoast | 5:177520d43c87 | 18 | static const int LIMIT = 12000.0; |
tomontoast | 5:177520d43c87 | 19 | |
tomontoast | 5:177520d43c87 | 20 | }; |
tomontoast | 5:177520d43c87 | 21 | |
intrinseca | 1:b3907b8d9f65 | 22 | #endif |