//#define S88N //S88N Interface (max 62 * 8 Module)
#define WIFI //WiFi Interface über Serial-Port für Arduino UNO/MEGA/DUE zum ESP 8266
//#define WLAN Serial2 // (DEFAULT = Serial2!) use not the standard WLAN Serial Interface. Select another serial:
//#define Z21VIRTUAL // WiFi over SoftSerial for UNO only! - LAN and LocoNet will be inaktiv!
#define LAN //LAN Ethernet Z21 LAN Kommunikation mit W5100 oder ENC28 Ethernet Shield. Bitte diese IP nur über die Webseite (
http://192.168.0.111) ändern! (not for ESP8266 and ESP32)
//#define ENC28 //USE a ENC28J60 module - instead of w5100 Shield (MEGA only!)
//#define LANmacB2 0xEF //Byte2 (DEFAULT = 84:2B:BC:EF:FE:ED!) change optional LAN MAC Address. MAC starts with: „84:2B:BC:..Byte*2..:..Byte*1..:..Byte*0..“
//#define LANmacB1 0xFE //Byte1
//#define LANmacB0 0xED //Byte0
//#define LANTimeoutDHCP 10000 //(DEFAULT!) Timeout to wait for a DHCP respose (Fix default Time: 5 sec)
//#define DCCGLOBALDETECTOR //DCC Railcom Global Detector for MEGA on Serial Port 3 (RX only) - (not for ESP8266 and ESP32)
#define XPRESSNET //XpressNet Auto Master/Salve Interface (not for ESP8266 and ESP32)
#define LOCONET //LocoNet Interface (Timer1, Timer5 on MEGA, with LocoNet2 Library on ESP32)
#define LnSLOTSRV //LocoNet Master-Mode: provide a Slot Server for Loco to use FRED & DaisyII
//#define LnBufferUSB //LocoNet LocoBuffer-USB at 57600 bps (Achtung: kein Debug über Serial Monitor möglich!)
//#define BOOSTER_EXT //External Booster Interface (zB. ROCO, CD[E])
#define BOOSTER_INT //internal Booster Interface (zB. TLE5206)
#define BOOSTER_INT_MAINCURRENT //Standard Short Circuit Detection over current sence resistor (VAmpIntPin) activate the current sensor for prog track and SHORT CIRCUIT SENCE over MAINCURRENT
//#define DETECT_SHORT_INT_WAIT 20 //Time after internal short circuit is detected (Fix default Value = 3)
//#define DETECT_SHORT_INT_VALUE 1000 //analogRead value for "mA" that is too much (Fix default Value = 400 (AREF 5.0V) and Value = 1000 (AREF 1.1V)
/* (DEFAULT OFF!) activate only one - Short2 detection PIN reading use: (only one can be active!)*/
//#define BOOSTER_INT_TLE5206 //internal Booster with TLE5206 or
//#define BOOSTER_EXT_CDE //external CDE Booster
#define PROG_OUT_INVERT //(DEFAULT OFF!) invert the Output Signal for Service-Mode (Prog-Relay) - for L298n H-Bridge usage
//#define DALLASTEMPSENSE //Dallas 18B20 Temperatur Sensor for Arduino MEGA only!
#define Z21DISPLAY FIND //SSD1306 OLED Display and Address for config Data for Arduino MEGA and ESP only! -->MEGA: 20(SDA), 21(SCL) || -->ESP8266: D2(SDA), D1(SCL)
//If you didn't know the Display I2C Address leave the value "FIND" so the central will search for it!
//#define Z21DISPLAY_SH1106 //(DEFAULT OFF!) use OLEDs based on SH110X drivers
#define FS128 //default speed steps (Fahrstufen) => possible values are: FS14, FS28, FS128
//#define SwitchFormat IB //(DEFAULT = ROCO!) Define accessory Address start value => possivle values are: ROCO (+0), IB (+4)
#define Uref 1.08 // measured reference voltage ARef-pin, individual value for every Arduino
#define senseResist 0.1 //or 0.33 // actual resistor for measuring current on track
//#define EXTERNAL_UREF_1V1 //optional: AREF with external 1.1 Volt, to get better CV# read with Arduino UNO