A program designed to get the distance from an SRF02 distance sensor and create an audible and visual indication of that distance with data logging capabilities.

Dependencies:   N5110 PowerControl SRF02 mbed

Revision:
11:41052065c916
Parent:
10:b61013738793
Child:
12:babcce84f9c8
--- a/main.h	Thu Apr 23 15:12:49 2015 +0000
+++ b/main.h	Fri May 01 16:47:33 2015 +0000
@@ -2,7 +2,7 @@
 * @file main.h
 * @brief Distance Sensor Project
 * @brief Header file containing functions, definitions and global variables.
-* @brief Version: 0.6
+* @brief Version: 1.0
 * @author Sam Russell
 * @date March 2015
 */
@@ -83,8 +83,7 @@
 int distance = 0; /*!<initialise distance to equal 0. */
 int buttonFlag = 0; /*!<initialise buttonFlag to be 0, which defines the state of the data logger. */
 int setTimeFlag = 0; /*!<initialise setTimeFlag to equal 0. */
-int mode = 0; /*!<initialise mode to equal 0 (normal mode). */
-
+int mode = 1; /*!<initialise mode to equal 0 (normal mode). */
 char rxString[16]; /*!< buffer to store received string */
 
 /********************************************//**