GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

Revision:
74:8881f4aeb174
Parent:
73:e8f7ee59d3e5
Child:
75:49e69031799c
--- a/main.cpp	Mon Apr 23 21:41:15 2018 +0000
+++ b/main.cpp	Tue Apr 24 16:26:38 2018 +0000
@@ -53,6 +53,10 @@
 int main(void) {
     initial_setup(as1107);
     
+    // pull up UI_STATION_SELECT
+    station_select.mode(PullUp);
+    start_button.mode(PullUp);
+    
     //set all digits to zero
     spi_send(as1107, 0x0100);
     spi_send(as1107, 0x0200);
@@ -80,8 +84,10 @@
     }
     
     if (station == STATION_A) {
-        //gnoll(8, sensor_values);
-        whack(8, sensor_values);
+        while (uti_chk_ubutton() == 0);
+        gnoll(8, sensor_values);
+        while (uti_chk_ubutton() == 0);
+        //whack(8, sensor_values);
     }
     else if (station == STATION_B) {
         whack(8, sensor_values);