Ben Gordon
/
ELEC351_GroupA_alternate
temp
Diff: displayThread.h
- Revision:
- 0:2a4af0cb6e8d
diff -r 000000000000 -r 2a4af0cb6e8d displayThread.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/displayThread.h Thu Dec 06 15:38:09 2018 +0000 @@ -0,0 +1,36 @@ +#ifndef _DISPLAYTHREAD_H +#define _DISPLAYTHREAD_H + #include "Pages.hpp" + #include "mbed.h" + #include "dateTime.hpp" + + #define b1 PE_12 + #define b2 PE_14 + + #define RS PD_15 //D9 + #define E PF_12 //D8 + #define d4 PF_13 //D7 + #define d5 PE_9 //D6 + #define d6 PF_14 //D4 + #define d7 PF_15 //D2 + + + #define PRESSED 1 + + extern Thread Display; + +void setValue(BYTE cycle,signed INT_32 value); +void waitForInput(); +void DisplayThread(); +void pageSelect(U_BYTE buttonValue); +void buttonActionOne(U_BYTE buttonValue); +void buttonActionTwo(U_BYTE buttonValue); +void buttonActionThree(U_BYTE buttonValue); + +void buttonISR1(); +void buttonISR2(); + +void buttonTO(); + +#endif +