Function on LEDs

Committer:
PA
Date:
Mon May 28 02:58:18 2012 +0000
Revision:
0:38ffbf6895c1
Child:
1:7fd22984c201

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
PA 0:38ffbf6895c1 1 #ifndef MBED_LEDFUNCTION_H
PA 0:38ffbf6895c1 2 #define MBED_LEDFUNCTION_H
PA 0:38ffbf6895c1 3
PA 0:38ffbf6895c1 4 #include "mbed.h"
PA 0:38ffbf6895c1 5
PA 0:38ffbf6895c1 6 class LEDFunction{
PA 0:38ffbf6895c1 7
PA 0:38ffbf6895c1 8 public:
PA 0:38ffbf6895c1 9 LEDFunction(PinName);
PA 0:38ffbf6895c1 10 void OnOff();
PA 0:38ffbf6895c1 11 void Brightness(int);
PA 0:38ffbf6895c1 12 void write_us(int);
PA 0:38ffbf6895c1 13 void duty(float);
PA 0:38ffbf6895c1 14 int read_us();
PA 0:38ffbf6895c1 15
PA 0:38ffbf6895c1 16 private:
PA 0:38ffbf6895c1 17 void SigStart();
PA 0:38ffbf6895c1 18 void SigStop();
PA 0:38ffbf6895c1 19 DigitalOut _Pin;
PA 0:38ffbf6895c1 20 int Period;
PA 0:38ffbf6895c1 21 int PWMDuty;
PA 0:38ffbf6895c1 22 int PWMMin;
PA 0:38ffbf6895c1 23 int PWMMax;
PA 0:38ffbf6895c1 24 Ticker Pulse;
PA 0:38ffbf6895c1 25 Timeout PulseEnd;
PA 0:38ffbf6895c1 26 };
PA 0:38ffbf6895c1 27
PA 0:38ffbf6895c1 28 #endif