1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

Ticker library update

This commit is contained in:
Ivan Grokhotkov
2014-12-22 18:42:57 +03:00
parent 9ba2fcd29f
commit 687e472b4b
5 changed files with 54 additions and 22 deletions

View File

@ -28,7 +28,7 @@ void flip()
// when the counter reaches a certain value, start blinking like crazy
if (count == 20)
{
flipper.attach(&flip, 0.1);
flipper.attach(0.1, flip);
}
// when the counter reaches yet another value, stop blinking
else if (count == 120)
@ -42,7 +42,7 @@ void setup() {
digitalWrite(1, LOW);
// flip the pin every 0.3s
flipper.attach(&flip, 0.3);
flipper.attach(0.3, flip);
}
void loop() {