DCC-EX Simple Throttle
Simple throttle for a DCC-EX CommandStation
Loading...
Searching...
No Matches
/home/runner/work/DCCEXSimpleThrottle/DCCEXSimpleThrottle/myConfig.example.h
Go to the documentation of this file.
1// Example config.h file
2// Copy this to config.h and update to suit
3
4#ifndef MYCONFIG_H
5#define MYCONFIG_H
6
7/*
8Define WiFi connection parameters here
9*/
10#define COMMANDSTATION_COUNT 2 // The number of EX-CommandStations to define
11
12#define COMMANDSTATION_NAMES {"My CommandStation example", "My club"}
13#define COMMANDSTATION_IPS {"192.168.4.1", "192.168.0.1"}
14#define COMMANDSTATION_PORTS {2560, 2560}
15#define COMMANDSTATION_SSIDS {"DCCEX_123456", "MY_CLUB_SSID"}
16#define COMMANDSTATION_PASSWORDS {"PASS_123456", "MY_CLUB_PASSWORD"}
17
18#define LOCAL_ROSTER_COUNT 3
19
20#define LOCAL_ROSTER_NAMES {"Local Loco 1001", "Local Loco 1002", "Local Loco 1003"}
21#define LOCAL_ROSTER_ADDRESSES {1001, 1002, 1003}
22
23// Recommended rotary encoder pin definitions for Bluepill/Blackpill
24// #define ENCODER_DT PC14
25// #define ENCODER_CLK PC15
26// #define ENCODER_SW PA0
27
28// Recommended rotary encoder pin definitions for ESP32
29// #define ENCODER_DT 12
30// #define ENCODER_CLK 14
31// #define ENCODER_SW 13
32
33// OLED connection and type
34// #define OLED_CONNECTION OLED_I2C
35// #define OLED_CONNECTION OLED_SPI
36// #define OLED_ADDRESS 0x3c
37
38// Recommended I2C pins for Bluepill/Blackpill
39// #define SCL_PIN PB6
40// #define SDA_PIN PB7
41
42// Recommended I2C pins for ESP32
43// #define SCL_PIN 22
44// #define SDA_PIN 23
45
46// Recommended SPI pins for Bluepill/Blackpill
47// #define CS_PIN PA4
48// #define DC_PIN PA3
49// Reference:
50// SCK - PA5
51// MISO - PA6
52// MOSI - PA7
53
54// Recommended SPI pins for ESP32 (VSPI)
55// #define CS_PIN 5
56// #define DC_PIN 4
57// Reference:
58// SCK - 18
59// MISO - 19
60// MOSI - 23
61
62#endif