can't push chnages :(

Fork of FBRDash by Michael Allan

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LEDS.h Source File

LEDS.h

00001 #ifndef FBRDASH_LEDS_H
00002 #define FBRDASH_LEDS_H
00003 
00004 #include "mbed.h"
00005 
00006 class LEDS
00007 {
00008     public:
00009         LEDS(PwmOut _pins[]);
00010         void refresh(float rpm);
00011         
00012         static const int NUM_LEDS = 6;
00013     
00014     private:
00015         PwmOut* pins;
00016     
00017     //revs represented by last red LED
00018     static const int LIMIT = 12000.0;
00019         
00020 };
00021 
00022 #endif