Skip to content

Commit cf3906f

Browse files
committed
Test case same as ESP8266
1 parent a0cb46c commit cf3906f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: libraries/Ticker/examples/TickerParameter/TickerParameter.ino

+7-3
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,19 @@ void setPin(int state) {
2424
digitalWrite(LED_BUILTIN, state);
2525
}
2626

27+
void setPinChar(char state) {
28+
digitalWrite(LED_BUILTIN, state);
29+
}
30+
2731
void setup() {
2832
pinMode(LED_BUILTIN, OUTPUT);
29-
digitalWrite(1, LOW);
3033

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

34-
// every 26 ms, call setPin(1)
35-
tickerSetHigh.attach_ms(26, setPin, 1);
37+
// every 26 ms, call setPinChar(1)
38+
tickerSetHigh.attach_ms(26, setPinChar, (char)1);
39+
3640
}
3741

3842
void loop() {

0 commit comments

Comments
 (0)