Created
May 6, 2016 14:19
-
-
Save dmiddlecamp/f92d1caa55c81788890f5b086d6f4f9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyLed | |
{ | |
Timer* timer; | |
public: | |
MyLed() | |
{ | |
timer = new Timer(1000, &MyLed::timeout, *this); | |
timer->start(); | |
} | |
void timeout() | |
{ | |
Serial.println("timeout"); | |
} | |
}; | |
MyLed myLed; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment