Uses the SRF02 UDS and displays distance in a variety of ways on the N5110 LCD.

Dependencies:   N5110WN PowerControl SRF02 mbed

Revision:
7:962b5f044a9b
Parent:
6:a5cd7eb72264
Child:
8:ffcde84b8cf3
diff -r a5cd7eb72264 -r 962b5f044a9b main.h
--- a/main.h	Wed Apr 08 23:02:14 2015 +0000
+++ b/main.h	Sun Apr 12 22:08:16 2015 +0000
@@ -9,6 +9,7 @@
 #define MAIN_H
 
 #define PI 3.14159265359
+#define USR_POWERDOWN    (0x104)
 
 #include "mbed.h"
 #include "PowerControl/PowerControl.h"
@@ -200,13 +201,18 @@
 */
 void LCDVis3();
 /**
-sets a image of a car in pixels
+sets an image of a car in pixels
 */
 void car();
+/**
+Used for power saving
+*/
+int semihost_powerdown();
 
+//----Structs----
 typedef const struct State STyp; /*!< defines the struct type */
 /**
-Sets the struct
+Sets the structure for the units FSM
 */
 struct State { 
  float unitMultiple; /*!< float that stores the unit mulitple */
@@ -226,7 +232,7 @@
 
 typedef const struct VState VSTyp; /*!< defines the struct type */
 /**
-Sets the struct
+Sets the structure for the visual change FSM
 */
 struct VState { 
  int visual; /*!< integer that stores the visual mode */