Plymouth ELEC351 Group T
/
ELEC351_Group_T
FINAL PROJECT isn't it
Fork of ELEC351 by
Diff: LED.cpp
- Revision:
- 52:99915f5240b2
- Parent:
- 51:47f5db68500b
--- a/LED.cpp Tue Jan 09 15:15:08 2018 +0000 +++ b/LED.cpp Tue Jan 09 22:27:49 2018 +0000 @@ -1,4 +1,3 @@ -#include "mbed.h" #include "LED.hpp" @@ -23,7 +22,7 @@ void LED::flash(float time)//Flashes the LED for the time passed in { this->pin = 1; - wait(time); + Thread::wait(time); this->pin = 0; } void LED::Toggle()//Toggles the current state of the LED