Mobile Security System - Revision 1.0

Dependencies:   FXOS8700Q N5110 SDFileSystem SRF02 mbed

Revision:
1:3ae4192d0c25
Parent:
0:12ae42019e9f
Child:
2:e504a3cfe113
--- a/main.cpp	Fri Mar 04 12:15:28 2016 +0000
+++ b/main.cpp	Fri Mar 04 12:42:18 2016 +0000
@@ -1,6 +1,6 @@
 /* ELEC2645 Project
 
-Week 19 - Take distance readings from the sensor
+Week 19 - Take distance readings from the sensor and set-up Doxygen comments
 Week 20 -
 Week 21 -
 Week Easter -
@@ -10,34 +10,7 @@
 
 */
 
-#include "mbed.h"
-#include "N5110.h"
-#include "SRF02.h"
-
-
-SRF02 srf02(I2C_SDA,I2C_SCL);
-
-// UART connection for PC
-Serial pc(USBTX,USBRX);
-
-// K64F on-board LEDs
-DigitalOut r_led(LED_RED);
-DigitalOut g_led(LED_GREEN);
-DigitalOut b_led(LED_BLUE);
-// K64F on-board switches
-InterruptIn sw2(SW2);
-InterruptIn sw3(SW3);
-
-int distance;
-
-// error function hangs flashing an LED
-void error();
-// setup serial port
-void init_serial();
-// set-up the on-board LEDs and switches
-void init_K64F();
-
-
+#include "main.h"
 
 int main()
 {
@@ -47,7 +20,6 @@
  
     while (1) {
 
-
         for (int i = 1; i < 11; i++) {
             // read sensor and accelerometer
             distance = srf02.getDistanceCm();
@@ -58,9 +30,8 @@
 
         // short delay before next measurement
         wait(0.5);
-
+        
     }
-
 }
 
 void init_serial()