Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Clock.h
Go to the documentation of this file.
1
22
#ifndef CLOCK_H
23
#define CLOCK_H
24
25
namespace
Clock
{
26
27
volatile
unsigned
long
seconds
= 0;
28
29
void
setup
()
30
{
31
}
32
33
void
loop
()
34
{
35
unsigned
long
start = millis();
36
await
(millis() - start >= 1000);
37
seconds += 1;
38
}
39
};
40
41
#endif
Clock::loop
void loop()
Definition:
Clock.h:33
Clock::setup
void setup()
Definition:
Clock.h:29
await
#define await(cond)
Definition:
Scheduler.h:162
Clock::seconds
volatile unsigned long seconds
Definition:
Clock.h:27
Clock
Definition:
Clock.h:25
examples
SchedulerAlarmClock
Clock.h
Generated on Thu Aug 31 2017 12:52:29 for Arduino-Scheduler by
1.8.11