![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
Diff: main.h
- Revision:
- 2:ebcfecb68cca
- Parent:
- 1:387d5e6fa05f
- Child:
- 4:0bd5c189f2f3
--- a/main.h Wed Apr 08 18:41:31 2015 +0000 +++ b/main.h Wed Apr 08 20:10:26 2015 +0000 @@ -27,7 +27,7 @@ Ticker timer; int timerflag = 0; //initialise timer flag to equal 0. -float distance = 0; +int distance = 0; int buttonFlag = 0; //initialise buttonFlag to be 0, which defines the state of the data logger. char rxString[16]; // buffer to store received string int light =0;