![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
All tasks complete
Dependencies: mbed MCP23017 mbed-rtos WattBob_TextLCD
header.h
- Committer:
- aingks
- Date:
- 2019-03-20
- Revision:
- 2:9d6d07c9cc9c
- Parent:
- 1:c4f62ef9b5b7
- Child:
- 3:f88d667629e6
File content as of revision 2:9d6d07c9cc9c:
#ifndef HEADER_whatever #define HEADER_whatever #include "mbed.h" #define pin_analog_1 p15 #define pin_analog_2 p16 #define pin_digital_1 p17 #define pin_digital_2 p18 #define pin_digital_3 p19 #define pin_digital_4 p20 #define pin_LED1 LED1 #define pin_LED2 LED2 #define pin_LED3 LED3 #define pin_LED4 LED4 #define pin_LED5 p25 #define pin_LED6 p26 //call the functions at the end for the main //STRUCTURE typedef struct { float brakevalue; float accelvalue; float array[5]; float average; float rawspeed; }SDATA; SDATA speed; typedef enum signallite{ }IND_TURN; typedef struct { int ENGINESTATE; uint8_t odometer; IND_TURN ind; }CARINFO; CARINFO info; //calling all functions void task1readbrake(); void task2readaccel(); void task3enginestate(); void task4average(); void task5brakeLED(); void task6speedmonitor(); void task7displayvalues(); void task8sidelights(); void task9indLED(); void taskXserialdump(); #endif