Program that demonstrates library development and improvement.

Dependencies:   Blinker mbed

Committer:
tbjazic
Date:
Thu Dec 15 14:52:46 2016 +0000
Revision:
2:40aeb13dbb4a
Parent:
1:671fed642362
Library and main() updated, with removed wait() functions.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tbjazic 0:a8f85fdcc698 1 #include "mbed.h"
tbjazic 0:a8f85fdcc698 2 #include "Blinker.h"
tbjazic 0:a8f85fdcc698 3
tbjazic 0:a8f85fdcc698 4 int main() {
tbjazic 0:a8f85fdcc698 5 Blinker myBlinker(LED3);
tbjazic 0:a8f85fdcc698 6 myBlinker.blink(10);
tbjazic 1:671fed642362 7 while(!myBlinker.isFinished()) {
tbjazic 1:671fed642362 8 // do something else...
tbjazic 1:671fed642362 9 }
tbjazic 0:a8f85fdcc698 10 myBlinker.blink(5, 1);
tbjazic 1:671fed642362 11 while(!myBlinker.isFinished()) {
tbjazic 1:671fed642362 12 // do something else...
tbjazic 1:671fed642362 13 }
tbjazic 1:671fed642362 14 }