Embedded Systems Project Mateusz Loboda 200843098

Dependencies:   N5110 SRF02-Mateusz mbed

Revision:
0:3403a3415306
Child:
2:0dfa60f22f07
diff -r 000000000000 -r 3403a3415306 main.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.h	Wed May 04 10:58:52 2016 +0000
@@ -0,0 +1,58 @@
+/**
+@file main.h
+@brief ʜeader file declares functions and variables
+@brief ʀeverse Parking Tool...
+@brief ʀevision 1.0
+@author Mateusz Loboda
+@Date 02/05/16
+*/
+
+#ifndef MAIN_H
+#define MAIN_H
+#include "N5110.h"
+#include "SRF02.h"
+
+
+N5110 lcd(PTE26 , PTA0 , PTC4 , PTD0 , PTD2 , PTD1 , PTC3);
+SRF02 sensor(I2C_SDA,I2C_SCL);
+
+DigitalOut r_led(LED_RED);
+DigitalOut g_led(LED_GREEN);
+DigitalOut b_led(LED_BLUE);
+InterruptIn button2(PTB18);
+InterruptIn button1(PTB9);
+PwmOut buzzer(PTA2);
+AnalogIn rate(PTB10);
+DigitalOut myled(PTC2);
+Ticker ticker; // pot delay, periodic interrupt
+//InterruptIn button2(PTB23);
+
+Timeout out;  //
+
+volatile int g_button1_flag = 0;
+volatile int g_button2_flag = 0;
+volatile int g_ticker_flag = 0;
+void units();
+void mode();
+void timeout_isr();
+void ticker_isr();
+void init_K64F();
+void initialScreen();
+void initialArray();
+void get_averageDistance();
+void redLedIndicator();
+void drawDistanceBars();
+void moveArrayElements();
+void adjacentArrayElements();
+void plotAxes();
+void plotDistancePoint();
+void modeTwo();
+
+
+
+float buzzerPeriod;
+float delay;
+float averageDistance;
+float graphArray[82];
+ 
+#endif
\ No newline at end of file