Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Command.cpp
- Revision:
- 0:4bc34a5fcc29
- Child:
- 1:13c4bf8989d5
diff -r 000000000000 -r 4bc34a5fcc29 Command.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Command.cpp Sat Nov 21 17:17:41 2015 +0000
@@ -0,0 +1,32 @@
+#pragma once
+#include "Command.h"
+#include "mbed.h"
+
+static DigitalOut led1(LED1);
+
+
+void LedCommand :: execute()
+{
+ led1 = !led1;
+}
+
+void TurnLeftCommand :: execute()
+{
+}
+
+void TurnRightCommand :: execute()
+{
+}
+
+void MoveForwardCommand :: execute()
+{
+}
+
+void MoveBackwardCommand :: execute()
+{
+}
+
+void StopCommand :: execute()
+{
+}
+