18 lines
249 B
C++
18 lines
249 B
C++
unsigned long timeNow;
|
|
unsigned long timeLast = millis();
|
|
|
|
void setup()
|
|
{
|
|
Serial.begin(9600);
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
timeNow = millis();
|
|
|
|
if ((timeLast + 1000) <= timeNow) {
|
|
Serial.println(timeNow);
|
|
timeLast = timeNow;
|
|
}
|
|
}
|