1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-30 03:26:13 +01:00
CommandStation-EX/DCCTimer.h

20 lines
392 B
C
Raw Normal View History

#ifndef DCCTimer_h
#define DCCTimer_h
#include "Arduino.h"
2023-01-03 04:02:54 +01:00
#if defined(ARDUINO_ARCH_RP2040)
#include "pico/stdlib.h"
#endif
typedef void (*INTERRUPT_CALLBACK)();
class DCCTimer {
public:
static void begin(INTERRUPT_CALLBACK interrupt);
static void getSimulatedMacAddress(byte mac[6]);
2021-02-12 14:31:23 +01:00
static bool isPWMPin(byte pin);
static void setPWM(byte pin, bool high);
private:
};
#endif