Dependencies:   mbed

Revision:
0:dfd9a86fd08c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Mar 01 16:39:17 2017 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+ 
+DigitalOut myled(LED1);
+DigitalOut Ctrl(p8); //Solenoid output control bit
+ 
+int main() {
+    while(1) {
+        Ctrl = 1; //ON
+        myled = 1;
+        wait(0.5); 
+        Ctrl = 0; //OFF
+        myled = 0;
+        wait(2);
+    }
+}
\ No newline at end of file