Download picasa web albums photos 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 picasa web albums photos automatically.
This application requires mpod mother board.
Picasaウェブアルバムから、自動的に写真をダウンロードして、ディジタルフォトフレームに表示します。
動作させるには mpod マザーボード が必要です。
プログラムの中で、ご自分のアルバムのRSSファイルへのURLを指定してからご利用下さい。
Diff: BlinkLed.h
- Revision:
- 0:dfd5cfea7112
- Child:
- 5:66c3398a14c9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/BlinkLed.h Wed Aug 22 16:00:38 2012 +0000
@@ -0,0 +1,59 @@
+/* BlinkLed.h */
+#ifndef BLINKLED_H_
+#define BLINKLED_H_
+
+#include "mbed.h"
+#include "rtos.h"
+
+/** LED which blinks automatically with RTOS
+*/
+class BlinkLed
+{
+public:
+ /** Constructor
+ */
+ BlinkLed(PinName pin, float dutyChangeStep, const char* name = NULL);
+
+ /** Destructor
+ */
+ ~BlinkLed();
+
+ /** Start biinking
+ */
+ void startBlink();
+
+ /** Finish biinking
+ */
+ void finishBlink();
+
+private:
+ /** Copy constructor
+ * Disable because it is only declaration
+ */
+ BlinkLed(const BlinkLed&);
+
+ /** Copy assignment operators
+ * Disable because it is only declaration
+ */
+ BlinkLed& operator=(const BlinkLed&);
+
+ /** Function for blinking
+ * This function will be bind to new thread
+ */
+ static void blink(void const *argument);
+
+ /** Target Led
+ */
+ PwmOut led;
+
+ /** Duty ratio step of changing every 20ms
+ */
+ float dutyChangeStep;
+
+ /** Pointer to thread for blinking
+ */
+ Thread* thread;
+};
+
+
+#endif /* BLINKLED_H_ */
Satoshi Togawa