can't push chnages :(

Dependencies:   PinDetect TextLCD mbed

Fork of FBRDash by Michael Allan

Committer:
tomontoast
Date:
Mon Jun 25 21:49:52 2012 +0000
Revision:
3:cb334e1d31c6
Parent:
2:825f572902c6
Test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
intrinseca 1:b3907b8d9f65 1 #ifndef FBRDASH_LEDS_H
intrinseca 1:b3907b8d9f65 2 #define FBRDASH_LEDS_H
intrinseca 1:b3907b8d9f65 3
intrinseca 1:b3907b8d9f65 4 #include "mbed.h"
intrinseca 1:b3907b8d9f65 5
intrinseca 1:b3907b8d9f65 6 class LEDS
intrinseca 1:b3907b8d9f65 7 {
intrinseca 1:b3907b8d9f65 8 public:
intrinseca 1:b3907b8d9f65 9 LEDS(PwmOut _pins[]);
intrinseca 1:b3907b8d9f65 10 void refresh(float rpm);
intrinseca 1:b3907b8d9f65 11
intrinseca 1:b3907b8d9f65 12 static const int NUM_LEDS = 6;
intrinseca 1:b3907b8d9f65 13
intrinseca 1:b3907b8d9f65 14 private:
intrinseca 1:b3907b8d9f65 15 PwmOut* pins;
intrinseca 1:b3907b8d9f65 16
intrinseca 2:825f572902c6 17 //revs represented by last red LED
intrinseca 1:b3907b8d9f65 18 static const int LIMIT = 18000.0;
intrinseca 2:825f572902c6 19
intrinseca 2:825f572902c6 20 //number of revs per LED
intrinseca 1:b3907b8d9f65 21 static const int RESOLUTION = LIMIT / NUM_LEDS;
intrinseca 1:b3907b8d9f65 22
intrinseca 1:b3907b8d9f65 23 };
intrinseca 1:b3907b8d9f65 24
intrinseca 1:b3907b8d9f65 25 #endif