1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-01 03:55:03 +01:00

Added the defines for the S88_BUSx_LENGTH, so the user can change the according values

This commit is contained in:
Mikado 2021-06-05 10:34:05 +02:00
parent cc897244ff
commit 9aadc41e70
2 changed files with 7 additions and 1 deletions

View File

@ -102,7 +102,8 @@ void setup()
LCD(1,F("Ready"));
#ifdef S88_MEGA
(S88Mega::getInstance())->S88_Init(16, 16, 16, 0);
(S88Mega::getInstance())->S88_Init(S88_BUS0_LENGTH, S88_BUS1_LENGTH,
S88_BUS2_LENGTH, S88_BUS3_LENGTH);
#endif
}

View File

@ -119,6 +119,11 @@ The configuration file for DCC-EX Command Station
#define S88_MEGA
// You can use a timer for reading the sensors (preferred) or you can use the standard-loop
#define S88_USE_TIMER
//Here you can define how many sensors are connected at each bus
#define S88_BUS0_LENGTH 16
#define S88_BUS1_LENGTH 16
#define S88_BUS2_LENGTH 16
#define S88_BUS3_LENGTH 0