1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +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

@ -25,11 +25,11 @@ void setup() {
pinMode(1, OUTPUT);
digitalWrite(1, LOW);
// call setPin(0) every 25 ms
tickerSetLow.attach_ms(&setPin, 25, 0);
// every 25 ms, call setPin(0)
tickerSetLow.attach_ms(25, setPin, 0);
// call setPin(1) every 26 ms
tickerSetHigh.attach_ms(&setPin, 26, 1);
// every 26 ms, call setPin(1)
tickerSetHigh.attach_ms(26, setPin, 1);
}
void loop() {