![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
First Draft, serial print change based on distance
Diff: main.h
- Revision:
- 17:02676e9bbc73
- Parent:
- 16:af15244242c2
--- a/main.h Fri Feb 04 16:29:33 2022 +0000 +++ b/main.h Fri Feb 04 18:30:13 2022 +0000 @@ -43,12 +43,12 @@ /***************************************************************************//** * -* below is array of states for the LEDs in the FSM, states have been defined in -* binary for ease of use, 0 is LED on, 1 is LED off so only one LED is on in any -* state. the member functions that are to be used in the main source code file -* have also been defined and the ultrasonice sensor trigger and echo pin have -* been defined, it updates every .5 seconds and a timeout after 1 second and call -* the function dist when the distance changes. +* below is a list of integars that have been defined, three objects have been +* defined that will be used for the comparison to the sensed values later on in +* the code. also there is an array of states for the LEDs in the FSM, states have +* been defined in binary for ease of use, 0 is LED on, 1 is LED off so only one +* LED is on in any state. the distance and flag integars have also been defined +* here but given no value, this is because these will be set later in the code. * *******************************************************************************/ @@ -64,6 +64,15 @@ int Start_flag, Back_flag; +/***************************************************************************//** +* +* below the member functions that are to be used in the main source code file +* have also been defined and the ultrasonice sensor trigger and echo pin have +* been defined, it updates every .5 seconds and a timeout after 1 second and call +* the function dist when the distance changes. +* +*******************************************************************************/ + void init_display(); void main_menu();