1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-23 16:16:13 +01:00
CommandStation-EX/Config.h

32 lines
1.2 KiB
C
Raw Normal View History

2020-05-27 10:40:12 +02:00
#ifndef Config_h
#define Config_h
2020-06-22 11:49:11 +02:00
const int WIFI_PORT =0xDCC; // (0xDCC is 3532 decimal) OR set to zero for no wifi
2020-06-13 16:53:46 +02:00
const char WIFI_SSID[] PROGMEM = "BTHub5-M6PT"; // your network SSID (name)
const char WIFI_PASS[] PROGMEM = "49de8d4862"; // your network password
2020-06-11 14:35:16 +02:00
const long WIFI_BAUD_RATE=115200;
const long SERIAL_BAUD_RATE=115200;
2020-06-11 14:35:16 +02:00
// This hardware configuration would normally be setup using a bunch of #ifdefs.
const byte MAIN_POWER_PIN = 3;
const byte MAIN_SIGNAL_PIN = 12;
const byte MAIN_SIGNAL_PIN_ALT = 0; // for hardware that flipflops signal pins
const byte MAIN_SENSE_PIN = A0;
const byte MAIN_SENSE_FACTOR=1; // analgRead(MAIN_SENSE_PIN) * MAIN_SENSE_FACTOR = milliamps
2020-05-26 19:34:54 +02:00
const byte MAIN_BRAKE_PIN = 9;
const byte PROG_POWER_PIN = 11;
const byte PROG_SIGNAL_PIN = 13;
const byte PROG_SIGNAL_PIN_ALT = 0; // for hardware that flipflops signal pins
const byte PROG_SENSE_PIN = A1;
2020-05-26 19:34:54 +02:00
const byte PROG_BRAKE_PIN = 10;
const float PROG_SENSE_FACTOR=1; // analgRead(PROG_SENSE_PIN) * PROG_SENSE_FACTOR = milliamps
2020-05-27 10:40:12 +02:00
2020-06-22 11:49:11 +02:00
// Allocations with memory implications..!
// Base system takes approx 500 bytes + 8 per loco. Turnouts, Sensors etc are dynamically created
2020-05-27 10:40:12 +02:00
const byte MAX_LOCOS=50;
#endif