Dashboard firmware for FBR2012

Dependencies:   mbed TextLCD PinDetect

Committer:
intrinseca
Date:
Tue Feb 19 22:05:53 2013 +0000
Revision:
8:e59084742552
Parent:
5:177520d43c87
Update libraries

Who changed what in which revision?

UserRevisionLine numberNew 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