![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
All tasks complete
Dependencies: mbed MCP23017 mbed-rtos WattBob_TextLCD
Diff: header.h
- Revision:
- 0:0943f040009c
- Child:
- 1:c4f62ef9b5b7
diff -r 000000000000 -r 0943f040009c header.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/header.h Wed Mar 20 15:49:27 2019 +0000 @@ -0,0 +1,64 @@ +#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 brakeaccel; + float array[5]; + float average; + float rawspeed; +}SDATA; + + +SDATA speed; + +typedef enum{ }IND; + +typedef struct +{ + float IND; +} + + + +//calling all functions + +void task1readbrake(); +void task2readaccel(); +void task3enginestate(); +void task4average(); +void task5brakeLED(); +void task6speedmonitor(); +void task7displayvalues(); +void task8sidelights(); +void task9indLED(); +void taskXserialdump(); + + +#endif \ No newline at end of file