mirror of https://github.com/ARMmbed/mbed-os.git
Revert mistake change.
parent
de7003d6c2
commit
7c99b50e93
|
@ -34,8 +34,8 @@ void flip_2() {
|
||||||
int main() {
|
int main() {
|
||||||
led1 = 0;
|
led1 = 0;
|
||||||
led2 = 0;
|
led2 = 0;
|
||||||
flipper_1.attach(&flip_1, 0.5); // the address of the function to be attached (flip) and the interval (1 second)
|
flipper_1.attach(&flip_1, 1.0); // the address of the function to be attached (flip) and the interval (1 second)
|
||||||
flipper_2.attach(&flip_2, 0.5); // the address of the function to be attached (flip) and the interval (2 seconds)
|
flipper_2.attach(&flip_2, 2.0); // the address of the function to be attached (flip) and the interval (2 seconds)
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
wait(1.0);
|
wait(1.0);
|
||||||
|
|
Loading…
Reference in New Issue