Thomas Milburn
/
FBRDash-tom
can't push chnages :(
Fork of FBRDash by
Diff: inc/LEDS.h
- Revision:
- 5:177520d43c87
- Parent:
- 2:825f572902c6
--- a/inc/LEDS.h Mon Jun 25 21:59:31 2012 +0000 +++ b/inc/LEDS.h Sun Oct 14 21:09:49 2012 +0000 @@ -1,25 +1,22 @@ -#ifndef FBRDASH_LEDS_H -#define FBRDASH_LEDS_H - -#include "mbed.h" - -class LEDS -{ - public: - LEDS(PwmOut _pins[]); - void refresh(float rpm); - - static const int NUM_LEDS = 6; - - private: - PwmOut* pins; - - //revs represented by last red LED - static const int LIMIT = 18000.0; - - //number of revs per LED - static const int RESOLUTION = LIMIT / NUM_LEDS; - -}; - +#ifndef FBRDASH_LEDS_H +#define FBRDASH_LEDS_H + +#include "mbed.h" + +class LEDS +{ + public: + LEDS(PwmOut _pins[]); + void refresh(float rpm); + + static const int NUM_LEDS = 6; + + private: + PwmOut* pins; + + //revs represented by last red LED + static const int LIMIT = 12000.0; + +}; + #endif \ No newline at end of file