STM32 Nucleo F207Z ultrasonic radar. TODO: send the data over the net

Dependencies:   HC_SR04_Ultrasonic_Library PinDetect

Revision:
0:23a36e52a5fa
Child:
1:b4179d7a5f2c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/button.cpp	Thu Jun 28 15:33:29 2018 +0000
@@ -0,0 +1,11 @@
+#include "radar.h"
+// Callback routine is interrupt activated by a debounced pb hit
+
+
+void pb_hit_callback (void) {
+    position++;
+    position = position % RANGE_MAX;
+    led3 = (position >= RANGE_CLOSE);
+    led2 = (position >= RANGE_MID);
+    led1 = (position >= RANGE_FAR);
+}
\ No newline at end of file