blinking led

Revision:
0:6d4514c5b852
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BlinkingLED.h	Thu Mar 07 21:04:30 2019 +0000
@@ -0,0 +1,41 @@
+/**
+ * @file BlinkingLED.h
+ * @brief indicator LED class
+ *
+ */
+
+#ifndef BLINKING_LED_H
+#define BLINKING_LED_H
+
+#include "mbed.h"
+
+class BlinkingLED {
+
+public:
+    /**
+     * @brief constructor.
+     * @param PinName for LED.
+     * @param led flip frequency. default: 1hz
+     */
+    BlinkingLED(PinName led, uint32_t freqency = 1);
+    
+    /**
+     * @brief flips LED.
+     */
+    void flip(void);
+
+private:
+    Ticker t;
+    DigitalOut _led;
+
+    /**
+     * @brief setting struct
+     */
+    typedef struct setting_s {
+        float time;
+    } setting_s;
+
+    setting_s setting;
+};
+
+#endif