Function on LEDs
LEDFunction.h
- Committer:
- PA
- Date:
- 2012-05-28
- Revision:
- 1:7fd22984c201
- Parent:
- 0:38ffbf6895c1
- Child:
- 2:6ef6066f3b6e
File content as of revision 1:7fd22984c201:
#include "mbed.h" #ifndef MBED_LEDFUNCTION_H #define MBED_LEDFUNCTION_H class LEDFunction{ public: LEDFunction(PinName); void write_us(int); void duty(float); int read_us(); void OnOff(); void flash(int); private: void SigStart(); void SigStop(); DigitalOut _pin; int Period; int PWMDuty; int PWMMin; int PWMMax; int i; Ticker Pulse; Timeout PulseEnd; }; #endif