10000 Implementation of Functional and Scheduled option in Ticker lib by hreintke · Pull Request #5030 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Implementation of Functional and Scheduled option in Ticker lib #5030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 14, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
More updates to example
  • Loading branch information
hreintke committed Aug 13, 2018
commit 70651ddcdf9c590062d0ac3f2c68862078dab954
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ class ExampleClass {
pinMode(_pin, OUTPUT);
_myTicker.attach_ms(_duration, std::bind(&ExampleClass::classBlink, this));
}
~ExampleClass(){};
~ExampleClass() {};

int _pin, _duration;
Ticker _myTicker;

void classBlink() {
digitalWrite(_pin, !digitalRead(_pin));
}
}
};

void staticBlink() {
Expand Down
0