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/

BlinkLed.h

Committer:
togayan
Date:
2012-08-16
Revision:
0:1855a008f28e
Child:
2:0da3a4508b46

File content as of revision 0:1855a008f28e:

/* 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_ */