Chapter004_TRobotCtrlA

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
SanYune
Date:
Tue Apr 02 08:02:43 2019 +0000
Parent:
6:4e6ec83d3c83
Commit message:
Chapter004_TRobotCtrlA

Changed in this revision

SNQueue.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 4e6ec83d3c83 -r 90969ee19974 SNQueue.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SNQueue.h	Tue Apr 02 08:02:43 2019 +0000
@@ -0,0 +1,4 @@
+#define MAX_Q 8
+#define SZ_Q 64
+#define END_LINE ';'
+
diff -r 4e6ec83d3c83 -r 90969ee19974 main.cpp
--- a/main.cpp	Wed Sep 13 11:30:50 2017 +0000
+++ b/main.cpp	Tue Apr 02 08:02:43 2019 +0000
@@ -1,12 +1,6 @@
 #include "mbed.h"
 
-DigitalOut myled(LED1);
+int main()
+{
 
-int main() {
-    while(1) {
-        myled = 1; // LED is ON
-        wait(0.2); // 200 ms
-        myled = 0; // LED is OFF
-        wait(1.0); // 1 sec
-    }
 }
diff -r 4e6ec83d3c83 -r 90969ee19974 mbed.bld
--- a/mbed.bld	Wed Sep 13 11:30:50 2017 +0000
+++ b/mbed.bld	Tue Apr 02 08:02:43 2019 +0000
@@ -1,1 +1,1 @@
-https://mbed.org/users/mbed_official/code/mbed/builds/a330f0fddbec
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/f9eeca106725
\ No newline at end of file