added tone request gateway before actually swithcing the pin
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* 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_ */
|
||||
Reference in New Issue
Block a user