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 WaG by
Diff: display.cpp
- Revision:
- 23:3da1d39c1ae9
- Parent:
- 22:09dd6977576b
- Child:
- 32:0dc2b4a3eee6
--- a/display.cpp Thu Mar 08 17:16:18 2018 +0000
+++ b/display.cpp Tue Mar 20 15:40:03 2018 +0000
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <string.h>
#include "spi.h"
+#include "utility.h"
//#define VERSION1
#define VERSION2
@@ -54,6 +55,8 @@
}
+
+
#ifdef VERSION1
/*
* void bin2bcd_array(int num);
@@ -140,4 +143,26 @@
command = 16 * 16 * i + bcd[i - 1];
spi_send(as1107, command);
}
+}
+
+/*
+ * void test_target_leds();
+ * Description: test each LED on the target board
+ *
+ * Inputs:
+ * None
+ *
+ * Outputs:
+ * Returns: void
+*/
+void test_target_leds() {
+ int pressed = uti_chk_ubutton();
+ while (pressed == 0);
+ while (pressed == 0) {
+ for (int i = 1; i <= 8; i++) {
+ //light up LED[i]
+ wait(0.1);
+ //turn off LED[i]
+ }
+ }
}
\ No newline at end of file
