mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +01:00
29 lines
993 B
C
29 lines
993 B
C
#ifndef Config_h
|
|
#define Config_h
|
|
|
|
// This hardware configuration would normally be setup using a bunch of #ifdefs.
|
|
|
|
const byte MAIN_POWER_PIN = 4;
|
|
const byte MAIN_SIGNAL_PIN = 7;
|
|
const byte MAIN_SIGNAL_PIN_ALT = 0; // for hardware that flipflops signal pins
|
|
const byte MAIN_SENSE_PIN = A0;
|
|
const byte MAIN_BRAKE_PIN = 9;
|
|
|
|
const int MAIN_MAX_MILLIAMPS=2000;
|
|
const float MAIN_SENSE_FACTOR=18; // analgRead(MAIN_SENSE_PIN) * MAIN_SENSE_FACTOR = milliamps
|
|
|
|
const byte PROG_POWER_PIN = 2;
|
|
const byte PROG_SIGNAL_PIN = 8;
|
|
const byte PROG_SIGNAL_PIN_ALT = 0; // for hardware that flipflops signal pins
|
|
const byte PROG_SENSE_PIN = A1;
|
|
const byte PROG_BRAKE_PIN = 10;
|
|
|
|
const int PROG_MAX_MILLIAMPS=250;
|
|
const float PROG_SENSE_FACTOR=18; // analgRead(PROG_SENSE_PIN) * PROG_SENSE_FACTOR = milliamps
|
|
|
|
// Allocations with memory implications..!
|
|
// Base system takes approx 900 bytes + 8 per loco. Turnouts, Sensors etc are dynamically created
|
|
const byte MAX_LOCOS=50;
|
|
|
|
#endif
|