Skip to content

Instantly share code, notes, and snippets.

@dmiddlecamp
Created May 6, 2016 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmiddlecamp/f92d1caa55c81788890f5b086d6f4f9f to your computer and use it in GitHub Desktop.
Save dmiddlecamp/f92d1caa55c81788890f5b086d6f4f9f to your computer and use it in GitHub Desktop.
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