Hoang Phuc Nguyen / Mbed OS STM32mbed_RPC_HTTP

Files at this revision

API Documentation at this revision

Comitter:
jphuc96
Date:
Thu Sep 14 17:16:01 2017 +0000
Commit message:
first_v1

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Sep 14 17:16:01 2017 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "EthernetInterface.h"
+//#include "HTTPServer.h"
+//#include "mbed_rpc.h"
+
+DigitalOut myled(LED1);
+
+int main() {  
+    while(1) {
+        myled = 1; // LED is ON
+        wait(0.2); // 200 ms
+        myled = 0; // LED is OFF
+        wait(1.0); // 1 sec
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Thu Sep 14 17:16:01 2017 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#c9e63f14085f5751ff5ead79a7c0382d50a813a2