Skip to content

Commit

Permalink
Test case same as ESP8266
Browse files Browse the repository at this point in the history
  • Loading branch information
dok-net committed Oct 1, 2019
1 parent c061548 commit 12c38f1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions libraries/Ticker/examples/TickerParameter/TickerParameter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,19 @@ void setPin(int state) {
digitalWrite(LED_BUILTIN, state);
}

void setPinChar(char state) {
digitalWrite(LED_BUILTIN, state);
}

void setup() {
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(1, LOW);

// every 25 ms, call setPin(0)
tickerSetLow.attach_ms(25, setPin, 0);

// every 26 ms, call setPin(1)
tickerSetHigh.attach_ms(26, setPin, 1);
// every 26 ms, call setPinChar(1)
tickerSetHigh.attach_ms(26, setPinChar, (char)1);

}

void loop() {
Expand Down

0 comments on commit 12c38f1

Please sign in to comment.