Damian Herman / Mbed 2 deprecated NetrunnerMain

Dependencies:   mbed

Revision:
1:90d75436758b
Parent:
0:5cf38d7bbdd5
Child:
2:09cc6b203fe4
--- a/main.cpp	Mon Jun 22 15:11:50 2015 +0000
+++ b/main.cpp	Mon Jun 22 15:47:43 2015 +0000
@@ -1,17 +1,13 @@
 #include "mbed.h"
-
-Ticker toggle_led_ticker;
-
-DigitalOut led1(LED1);
+#include "include/EngineDriver.h"
 
-void toggle_led() {
-    led1 = !led1;
-}
-
-int main() {
-    // Init the ticker with the address of the function (toggle_led) to be attached and the interval (100 ms)
-    toggle_led_ticker.attach(&toggle_led, 0.1);
-    while (true) {
+int main()
+{
+    enableAll();
+    
+    while (true) 
+    {
+        testEngines();
         // Do other things...
     }
 }
\ No newline at end of file