GroupA / Mbed 2 deprecated Lab_6_WaG

Dependencies:   mbed

Fork of WaG by GroupA

Revision:
32:0dc2b4a3eee6
Parent:
28:0736dfa41aab
Child:
33:0b5188ea34e8
--- a/main.cpp	Thu Mar 22 15:42:51 2018 +0000
+++ b/main.cpp	Thu Mar 22 16:06:21 2018 +0000
@@ -48,19 +48,11 @@
     int display_number;
     
     //set all digits to zero
-    spi_send(as1107 0x0100);
-    spi_send(as1107 0x0200);
-    spi_send(as1107 0x0300);
-    spi_send(as1107 0x0400);
+    spi_send(as1107, 0x0100);
+    spi_send(as1107, 0x0200);
+    spi_send(as1107, 0x0300);
+    spi_send(as1107, 0x0400);
 
-    jog_cw.mode(PullUp);
-    jog_ccw.mode(PullUp);
-    while(1) {
-        if (jog_ccw == 0) {
-            stp_step(STP_CCW);
-        }
-        if (jog_cw == 0) {
-            stp_step(STP_CW);
-        } 
-    }
+    test_target_leds();
+    pc.print("LED's tested");
 }
\ No newline at end of file