Files
amsswcomm/arduino_commlcd/amsgenlib.hpp
2023-12-06 12:52:59 -05:00

30 lines
420 B
C++

#ifndef __AMS_GENLIB_HPP__
#define __AMS_GENLIB_HPP__
#include <stdint.h>
#include <Arduino.h>
class utimer
{
public:
utimer();
~utimer();
unsigned long t;
//sets the time in memory
void set();
//blocking delay
void delay(unsigned long N);
//is it N microseconds after the set time?
//solves wraparound at long overflow
bool isafter(unsigned long N);
};
#endif