Download NHK English news podcast automatically. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/
Dependencies: BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem mbed-rtos mbed
Download NHK English news podcast automatically. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/
Diff: BlinkLed.h
- Revision:
- 0:1855a008f28e
- Child:
- 2:0da3a4508b46
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BlinkLed.h Thu Aug 16 15:49:19 2012 +0000 @@ -0,0 +1,29 @@ +/* BlinkLed.h */ +#ifndef BLINKLED_H_ +#define BLINKLED_H_ + +#include "mbed.h" +#include "rtos.h" + +class BlinkLed +{ +public: + BlinkLed(PinName pin, uint32_t millisecWait, const char* name = NULL); + + ~BlinkLed(); + + void startBlink(); + + void finishBlink(); + +private: + static void blink(void const *argument); + + PwmOut led; + uint32_t millisecWait; + + Thread* thread; +}; + + +#endif /* BLINKLED_H_ */ \ No newline at end of file