<this is my test library>
Fork of Flasher by
Diff: Flasher.cpp
- Revision:
- 0:3e6b94efd0f5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Flasher.cpp Thu Jun 30 12:54:36 2016 +0000 @@ -0,0 +1,13 @@ +#include"mbed.h" +#include"Flasher.h" + +Flasher::Flasher(PinName LED1_,PinName LED2_,PinName LED3_,PinName LED4_) : Right(LED1_,LED2_,LED3_,LED4_) +{} +void Flasher::flash(int p) +{ + for(int n = 0;n <= p;n++) + { + Right = n; + wait(0.5); + } +} \ No newline at end of file