First Draft, serial print change based on distance

Revision:
15:d8ff594535fc
Parent:
14:837945ccd8c0
Child:
16:af15244242c2
diff -r 837945ccd8c0 -r d8ff594535fc main.h
--- a/main.h	Thu Feb 03 21:58:22 2022 +0000
+++ b/main.h	Fri Feb 04 01:28:35 2022 +0000
@@ -21,9 +21,10 @@
 /***************************************************************************//**
 * 
 * below I have defined the inputs and outputs on the PCB, this includes all the
-* push buttons that have been defined as interrupts, the LEDs that have been 
-* defined in a Bus output for ease of use, the LCD output pins VCC,SCE,RST,D/C,
-* MOSI,SCLK,LED and the joystick y-coordinate x-coordinate and button.
+* push buttons that have been defined as interrupts, the piezo buzzer defined as
+* a pwm output, the LEDs that have been defined in a Bus output for ease of use, 
+* the LCD output pins VCC,SCE,RST,D/C, MOSI,SCLK,LED and the joystick 
+* y-coordinate x-coordinate and button.
 *
 *******************************************************************************/
 
@@ -55,7 +56,9 @@
 
 int fsm[6] = {0b111110, 0b111101, 0b111011, 0b110111, 0b101111, 0b011111};
 
-volatile int Start_flag, Back_flag;
+int Distance1, Distance2, Distance3, Distance4, Distance5, Distance6;
+
+int Start_flag, Back_flag;
 
 void init_display();
 
@@ -87,18 +90,7 @@
 
 ultrasonic mu(PTD0, PTC12, .5, 1, &dist);
 
-int sense;
-
-int Distance1;
-
-int Distance2;
+//int sense;
 
-int Distance3;
-
-int Distance4;
-
-int Distance5;
-
-int Distance6;
 
 #endif