Thomas Morris
/
PROJ324_Final
Proj 324 Final
Fork of ELEC351_Group_T by
Diff: main.cpp
- Revision:
- 19:54bc302a82ea
- Parent:
- 18:194a606ccd47
- Child:
- 20:cbb71f84cff9
diff -r 194a606ccd47 -r 54bc302a82ea main.cpp --- a/main.cpp Wed Dec 27 21:23:47 2017 +0000 +++ b/main.cpp Wed Dec 27 21:25:28 2017 +0000 @@ -113,7 +113,8 @@ } } //Interrupt service routive for SW1 falling edge (release) -void SW1FallingEdge() { +void SW1FallingEdge() +{ SW1.fall(NULL); //Disable this interrupt Yellow_led.Toggle(); //Toggle LED @@ -125,7 +126,6 @@ sw1TimeOut.attach(&SW1TimeOutHandler, 0.2); //Start timeout counter } - void ModeSelection() { while(1){ @@ -203,8 +203,6 @@ { t1.signal_set(SamplingTime); //Set the sampling thread signal high } - - void Sample()//Samples the hardware and prints the result to the LCD { while(1) @@ -239,7 +237,6 @@ t1.signal_set(NotSamplingTime); } } - int main() { //Greeting