Initialisation depot

This commit is contained in:
Serge NOEL
2026-02-10 11:05:54 +01:00
commit 549c9f388e
55 changed files with 13984 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
/**********************************************************************
CurrentMonitor.h
COPYRIGHT (c) 2013-2016 Gregg E. Berman
Part of DCC++ BASE STATION for the Arduino
**********************************************************************/
#ifndef CurrentMonitor_h
#define CurrentMonitor_h
#include "Arduino.h"
#define CURRENT_SAMPLE_SMOOTHING 0.01
#define CURRENT_SAMPLE_MAX 300
#ifdef ARDUINO_AVR_UNO // Configuration for UNO
#define CURRENT_SAMPLE_TIME 10
#else // Configuration for MEGA
#define CURRENT_SAMPLE_TIME 1
#endif
struct CurrentMonitor{
static long int sampleTime;
int pin;
float current;
char *msg;
CurrentMonitor(int, char *);
static boolean checkTime();
void check();
};
#endif