26 lines
377 B
C++
26 lines
377 B
C++
/*
|
|
* Seconds.h
|
|
*
|
|
* Created on: 10.09.2020
|
|
* Author: flori
|
|
*/
|
|
|
|
#ifndef SECONDS_H_
|
|
#define SECONDS_H_
|
|
|
|
#include "Arduino.h"
|
|
|
|
class Seconds
|
|
{
|
|
public:
|
|
static uint32_t Get();
|
|
|
|
private:
|
|
static uint32_t lastMillisShifted;
|
|
static uint32_t seconds;
|
|
static uint32_t secondsOverflow;
|
|
static volatile boolean semaphore;
|
|
};
|
|
|
|
#endif /* SECONDS_H_ */
|