Function on LEDs

Committer:
PA
Date:
Mon May 28 06:59:21 2012 +0000
Revision:
1:7fd22984c201
Parent:
0:38ffbf6895c1
Child:
2:6ef6066f3b6e

        

Who changed what in which revision?

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