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:
6:d6afc4026a1d
Parent:
4:0bd5c189f2f3
Child:
7:65bdd2d0d6ad
--- a/main.h	Thu Apr 09 10:18:28 2015 +0000
+++ b/main.h	Thu Apr 09 11:32:48 2015 +0000
@@ -6,6 +6,8 @@
 #include "mbed.h"
 #include "SRF02.h"
 #include "N5110.h"
+#include "PowerControl/PowerControl.h"
+#include "PowerControl/EthernetPowerControl.h"
 
 //Inputs
 SRF02 SRF02(p28,p27); // SDA, SCL
@@ -16,7 +18,7 @@
 AnalogOut logLED(p18); // Logging To Disk Indicator
 //            vcc,sce,rst,dc,mosi,clk,led
 N5110 display(p7,p8,p9,p10,p11,p13,p26);
-PwmOut Buzzer(p21); //Alert Buzzer
+PwmOut buzzer(p21); //Alert Buzzer
 PwmOut backlight(p26); //Backlight output pin.
 BusOut leds (LED1,LED2,LED3,LED4); //MBED onboard LEDs.
 Serial pc(USBTX,USBRX);