Applied engineering Team
/
Mikroupravljaci_vjezba_flasher
Dinko Djakovic - Flasher, upotreba klase
Diff: main.cpp
- Revision:
- 0:19c321c0fdb3
diff -r 000000000000 -r 19c321c0fdb3 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 22 17:22:32 2015 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" +#include "Flasher.h" +Flasher led(LED2); +int main() { + while(1){ +led.flash(5); +wait(1); +led.flash(2); +wait(1); +led.flash(3); +wait(1); +led.flash(7); +wait(1); +led.flash(1); +wait(1); +led.flash(2); +wait(1); +led.flash(2); +wait(1); +led.flash(1); +} +} \ No newline at end of file