<this is my test library>

Fork of Flasher by yuki sato

Files at this revision

API Documentation at this revision

Comitter:
satoyuki1111
Date:
Thu Jun 30 12:54:36 2016 +0000
Commit message:
this is my test library.;

Changed in this revision

Flasher.cpp Show annotated file Show diff for this revision Revisions of this file
Flasher.h Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 3e6b94efd0f5 Flasher.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Flasher.cpp	Thu Jun 30 12:54:36 2016 +0000
@@ -0,0 +1,13 @@
+#include"mbed.h"
+#include"Flasher.h"
+
+Flasher::Flasher(PinName LED1_,PinName LED2_,PinName LED3_,PinName LED4_) : Right(LED1_,LED2_,LED3_,LED4_)
+{}
+void Flasher::flash(int p)
+{
+    for(int n = 0;n <= p;n++)
+    {
+        Right = n;
+        wait(0.5);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 3e6b94efd0f5 Flasher.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Flasher.h	Thu Jun 30 12:54:36 2016 +0000
@@ -0,0 +1,15 @@
+#ifndef MBED_FLASHER_H
+#define MBED_FLASHER_H
+
+#include "mbed.h"
+
+class Flasher
+{
+    private:
+        BusOut Right;
+    public:
+        Flasher(PinName LED1_,PinName LED2_,PinName LED3_,PinName LED4_);
+        void flash(int p);
+};
+
+#endif
\ No newline at end of file