Committer:
PA
Date:
Wed Jun 20 06:35:17 2012 +0000
Revision:
0:e4f37b52019a

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
PA 0:e4f37b52019a 1 #ifndef MBED_LEDFunctions_H
PA 0:e4f37b52019a 2 #define MBED_LEDFunctions_H
PA 0:e4f37b52019a 3
PA 0:e4f37b52019a 4 #include "mbed.h"
PA 0:e4f37b52019a 5 #include "UniPWM.h"
PA 0:e4f37b52019a 6 #include <vector>
PA 0:e4f37b52019a 7 #include <map>
PA 0:e4f37b52019a 8 #include <string>
PA 0:e4f37b52019a 9
PA 0:e4f37b52019a 10 class LEDFunctions
PA 0:e4f37b52019a 11 {
PA 0:e4f37b52019a 12 std::vector<UniPWM*> m_pwm;
PA 0:e4f37b52019a 13 std::map<std::string, int> m_map;
PA 0:e4f37b52019a 14
PA 0:e4f37b52019a 15 public:
PA 0:e4f37b52019a 16 LEDFunctions();
PA 0:e4f37b52019a 17 void on(int id, int duration, float brightness, float smoothness );
PA 0:e4f37b52019a 18 //void on_abst(int, int, int, float, float);
PA 0:e4f37b52019a 19 void on_forever(int id, float brightness, float smoothness);
PA 0:e4f37b52019a 20 void off_forever(int id, float brightness, float smoothness);
PA 0:e4f37b52019a 21 void blink(int id, int frequency, int duration, float lower_brightness, float upper_brightness, float smoothness);
PA 0:e4f37b52019a 22 //void blink_abst(int, int, int, int, float, float, float);
PA 0:e4f37b52019a 23
PA 0:e4f37b52019a 24 private:
PA 0:e4f37b52019a 25 void id(int);
PA 0:e4f37b52019a 26 float i;
PA 0:e4f37b52019a 27 float k;
PA 0:e4f37b52019a 28 float p;
PA 0:e4f37b52019a 29 };
PA 0:e4f37b52019a 30
PA 0:e4f37b52019a 31 #endif