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.
Dependencies: mbed
Fork of Lab_6_WaG by
Diff: main.cpp
- 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);
