2020-09-22 20:57:11 +02:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
Config.h
|
|
|
|
COPYRIGHT (c) 2013-2016 Gregg E. Berman
|
|
|
|
COPYRIGHT (c) 2020 Fred Decker
|
|
|
|
|
|
|
|
The configuration file for DCC++ EX Command Station
|
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// NOTE: Before connecting these boards and selecting one in this software
|
|
|
|
// check the quick install guides!!! Some of these boards require a voltage
|
|
|
|
// generating resitor on the current sense pin of the device. Failure to select
|
|
|
|
// the correct resistor could damage the sense pin on your Arduino or destroy
|
|
|
|
// the device.
|
|
|
|
//
|
2020-09-26 22:56:35 +02:00
|
|
|
// DEFINE MOTOR_SHIELD_TYPE BELOW ACCORDING TO THE FOLLOWING TABLE:
|
2020-09-22 20:57:11 +02:00
|
|
|
//
|
2020-09-26 22:56:35 +02:00
|
|
|
// STANDARD_MOTOR_SHIELD : Arduino Motor shield Rev3 based on the L298 with 18V 2A per channel
|
|
|
|
// POLOLU_MOTOR_SHIELD : Pololu MC33926 Motor Driver (not recommended for prog track)
|
|
|
|
// FUNDUMOTO_SHIELD : Fundumoto Shield, no current sensing (not recommended, no short protection)
|
|
|
|
// FIREBOX_MK1 : The Firebox MK1
|
|
|
|
// FIREBOX_MK1S : The Firebox MK1S
|
|
|
|
// |
|
|
|
|
// +-----------------------v
|
2020-09-22 20:57:11 +02:00
|
|
|
//
|
2020-09-26 22:56:35 +02:00
|
|
|
#define MOTOR_SHIELD_TYPE STANDARD_MOTOR_SHIELD
|
2020-09-22 20:57:11 +02:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2020-09-24 11:59:01 +02:00
|
|
|
// The IP port to talk to a WIFI or Ethernet shield.
|
|
|
|
//
|
|
|
|
#define IP_PORT 2560
|
2020-09-22 20:57:11 +02:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2020-09-24 11:59:01 +02:00
|
|
|
// NOTE: Only supported on Arduino Mega
|
|
|
|
// Set to false if you not even want it on the Arduino Mega
|
2020-09-22 20:57:11 +02:00
|
|
|
//
|
2020-09-24 11:59:01 +02:00
|
|
|
#define ENABLE_WIFI true
|
2020-09-22 20:57:11 +02:00
|
|
|
|
2020-09-24 11:59:01 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// DEFINE WiFi Parameters (only in effect if WIFI is on)
|
|
|
|
//
|
2020-11-17 15:16:45 +01:00
|
|
|
// If DONT_TOUCH_WIFI_CONF is set, all WIFI config will be done with
|
2020-11-14 13:17:47 +01:00
|
|
|
// the <+> commands and this sketch will not change anything over
|
2020-11-17 15:16:45 +01:00
|
|
|
// AT commands and the other WIFI_* defines below do not have any effect.
|
|
|
|
//#define DONT_TOUCH_WIFI_CONF
|
2020-11-14 13:17:47 +01:00
|
|
|
//
|
2020-11-18 23:42:37 +01:00
|
|
|
// WIFI_SSID is the network name IF you want to use your existing home network.
|
|
|
|
// Do NOT change this if you want to use the WiFi in Access Point (AP) mode.
|
|
|
|
//
|
|
|
|
// If you do NOT set the WIFI_SSID, the WiFi chip will first try
|
|
|
|
// to connect to the previously configured network and if that fails
|
|
|
|
// fall back to Access Point mode. The SSID of the AP will be
|
|
|
|
// automatically set to DCCEX_*.
|
|
|
|
//
|
2020-11-17 15:16:45 +01:00
|
|
|
// Your SSID may not conain ``"'' (double quote, ASCII 0x22).
|
2020-09-24 11:59:01 +02:00
|
|
|
#define WIFI_SSID "Your network name"
|
2020-11-17 15:16:45 +01:00
|
|
|
//
|
|
|
|
// WIFI_PASSWORD is the network password for your home network or if
|
|
|
|
// you want to change the password from default AP mode password
|
|
|
|
// to the AP password you want.
|
|
|
|
// Your password may not conain ``"'' (double quote, ASCII 0x22).
|
2020-09-24 11:59:01 +02:00
|
|
|
#define WIFI_PASSWORD "Your network passwd"
|
2020-11-17 15:16:45 +01:00
|
|
|
//
|
|
|
|
// WIFI_HOSTNAME: You probably don't need to change this
|
2020-09-24 11:59:01 +02:00
|
|
|
#define WIFI_HOSTNAME "dccex"
|
2020-11-21 23:23:27 +01:00
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2020-11-23 00:46:14 +01:00
|
|
|
// Wifi connect timeout in milliseconds. Default is 14000 (14 seconds). You only need
|
2020-11-21 23:23:27 +01:00
|
|
|
// to set this if you have an extremely slow Wifi router.
|
|
|
|
//
|
2020-11-23 00:46:14 +01:00
|
|
|
//#define WIFI_CONNECT_TIMEOUT 14000
|
2020-09-22 20:57:11 +02:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2020-09-24 11:59:01 +02:00
|
|
|
// DEFINE STATIC IP ADDRESS *OR* COMMENT OUT TO USE DHCP
|
2020-09-22 20:57:11 +02:00
|
|
|
//
|
2020-09-24 11:59:01 +02:00
|
|
|
//#define IP_ADDRESS { 192, 168, 1, 200 }
|
2020-09-22 20:57:11 +02:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// DEFINE MAC ADDRESS ARRAY FOR ETHERNET COMMUNICATIONS INTERFACE
|
|
|
|
//
|
|
|
|
// Uncomment to use with Ethernet Shields
|
|
|
|
//
|
|
|
|
// NOTE: This is not used with ESP8266 WiFi modules.
|
2020-09-26 22:56:35 +02:00
|
|
|
//
|
2020-09-22 20:57:11 +02:00
|
|
|
// #define MAC_ADDRESS { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEF }
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// DEFINE LCD SCREEN USAGE BY THE BASE STATION
|
|
|
|
//
|
|
|
|
// Note: This feature requires an I2C enabled LCD screen using a PCF8574 based chipset.
|
|
|
|
// or one using a Hitachi HD44780.
|
2020-10-12 20:32:47 +02:00
|
|
|
// OR an I2C Oled screen.
|
|
|
|
// To enable, uncomment one of the lines below
|
2020-09-22 20:57:11 +02:00
|
|
|
|
2020-10-12 20:32:47 +02:00
|
|
|
// define LCD_DRIVER for I2C LCD address 0x3f,16 cols, 2 rows
|
|
|
|
// #define LCD_DRIVER 0x3F,16,2
|
2020-09-22 20:57:11 +02:00
|
|
|
|
2020-10-12 20:32:47 +02:00
|
|
|
//OR define OLED_DRIVER width,height in pixels (address auto detected)
|
|
|
|
// This will not work on a UNO due to memory constraints
|
|
|
|
// #define OLED_DRIVER 128,32
|
2020-09-22 20:57:11 +02:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2020-10-12 20:32:47 +02:00
|
|
|
// Enable warning as memory gets depleted
|
2020-09-22 22:11:50 +02:00
|
|
|
#define ENABLE_FREE_MEM_WARNING false
|