Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
Blink.h
Go to the documentation of this file.
1 
23 #ifndef BLINK_H
24 #define BLINK_H
25 
26 template<int PIN, unsigned int MS>
27 class Blink {
28 public:
29  static void setup()
30  {
31  pinMode(PIN, OUTPUT);
32  }
33  static void loop()
34  {
35  digitalWrite(PIN, HIGH);
36  delay(MS);
37  digitalWrite(PIN, LOW);
38  delay(MS);
39  }
40 };
41 
42 #endif