Files

copied
Last update 2 years 9 months by eddyluursema
FilesDCCplusplusDCCpp_Uno_VT100
..
Accessories.cpp
Accessories.h
Comm.h
Config.h
CurrentMonitor.cpp
CurrentMonitor.h
DCCpp_Uno.h
DCCpp_Uno_VT100.ino
EEStore.cpp
EEStore.h
Outputs.cpp
Outputs.h
PacketRegister.cpp
PacketRegister.h
Sensor.cpp
Sensor.h
SerialCommand.cpp
SerialCommand.h
CurrentMonitor.h
/********************************************************************** 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
Report a bug