-
Notifications
You must be signed in to change notification settings - Fork 33
/
Extended.config.h
69 lines (55 loc) · 6.63 KB
/
Extended.config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// ---------------------------------------------------------------------------------------------------------------------------------
// Extended configuration for OnStep SmartWebServer infrequently used options
// *** Most users will not change anything in this file! ***
// ---------------------------------------------------------------------------------------------------------------------------------
// ADJUST THE FOLLOWING TO CONFIGURE YOUR CONTROLLER FEATURES ----------------------------------------------------------------------
// <-Req'd = always must set, <-Often = usually must set, Option = optional, Adjust = adjust as req'd, Infreq = infrequently changed
// DEBUG ------------------------------------------------------------ see https://onstep.groups.io/g/main/wiki/6-Configuration#DEBUG
// Enable additional debugging and/or status messages on the specified SERIAL_DEBUG port
// Note that the SERIAL_DEBUG port cannot be used for normal communication with OnStep
// Parameter Name Value Default Notes Hint
#define DEBUG OFF // OFF, Use ON for background error messages only, use VERBOSE for all Infreq
// error and status messages, use PROFILER for VT100 task profiler,
// use REMOTE to forward verbose debug output to OnStep
#define SERIAL_DEBUG Serial // Serial, Or use any h/w serial port. Serial1 or Serial2, etc. as supported. Option
#define SERIAL_DEBUG_BAUD 9600 // 9600, n. Where n=9600,19200,57600,115200 (common baud rates.) Option
// NON-VOLATILE STORAGE ------------------------------------------------------------------------------------------------------------
#define NV_WIPE OFF // OFF, Causes the defaults to be written back into NV (FLASH,EEPROM,etc.) Infreq
// *** IMPORTANT: ENABLE THIS OPTION THEN UPLOAD, WAIT A MINUTE ***
// Warning ---> // *** OR TWO THEN SET THIS OPTION TO OFF AND UPLOAD AGAIN. ***
// *** LEAVING THIS OPTION ENABLED CAN CAUSE EXCESSIVE NV ***
// *** WEAR AND DAMAGE THE MICROCONTROLLER NV SUBSYSTEM !!! ***
// PASSWORD ------------------------------------------------------------------------------------------------------------------------
#define PASSWORD_DEFAULT "password" // "password", Adjust as required, this can be changed at runtime also. Adjust
// password for runtime access to network settings.
// BLE GAMEPAD SETTINGS (ESP32 ONLY) ------------------------------------------------ see https://onstep.groups.io/g/main/wiki/26762
#define BLE_GAMEPAD OFF // OFF, ON to allow BLE gamepad connection for ESP32 only. Option
#define BLE_GP_ADDR "ff:ff:de:09:f5:cf" // ...f:ff:ff", GamePad MAC address #1 Adjust
// GamePad device address must match exactly else it will not connect!
// Replace address with yours, in lower case, with colons as shown.
#define BLE_GP_ADDR1 "ff:ff:ff:ff:ff:ff" // ...f:ff:ff", GamePad MAC address #2 Adjust
// Two GamePads are allowed, operating in a "handoff" mode, one at time.
// IP ADDRESS SETTINGS -------------------------------------------------------------------------------------------------------------
#define MDNS_NAME "onstep" // "onstep", mDNS device name. Adjust
// The unique (Ethernet) MAC address for your SWS
#define MAC {0xDE,0xAD,0xBE,0xEF,0xFE,0xEE}
// These settings are stored in NV (EEPROM) and the SWS will not recognize the settings below except on the first upload unless
// NV is wiped, these settings (where applicable) can be changed at runtime however.
#define AP_ENABLED true // true, Wifi Access Point Enabled. Adjust
#define AP_SSID "ONSTEP" // "ONSTEP", Wifi Access Point SSID. Adjust
#define AP_PASSWORD "password" // "password", Wifi Access Point password. Adjust
#define AP_CHANNEL 7 // 7, Wifi Access Point channel. Adjust
#define AP_IP_ADDR {192,168,0,1} // ..,168,0,1}, Wifi Access Point IP Address. Adjust
#define AP_GW_ADDR {192,168,0,1} // ..,168,0,1}, Wifi Access Point GATEWAY Address. Adjust
#define AP_SN_MASK {255,255,255,0} // ..55,255,0}, Wifi Access Point SUBNET Mask. Adjust
#define STA_ENABLED false // false, Wifi Station Enabled. Adjust
#define STA_SSID "Home" // "Home", Wifi Station SSID to connnect to. Adjust
#define STA_PASSWORD "password" // "password", Wifi Station mode password. Adjust
#define STA_DHCP_ENABLED false // false, Wifi Station/Ethernet DHCP Enabled. Adjust
#define STA_IP_ADDR {192,168,1,55} // ..168,1,55}, Wifi Station/Ethernet IP Address. Adjust
#define STA_GW_ADDR {192,168,1,1} // ..,168,1,1}, Wifi Station/Ethernet GATEWAY Address. Adjust
#define STA_SN_MASK {255,255,255,0} // ..55,255,0}, Wifi Station/Ethernet SUBNET Mask. Adjust
// ONSTEP RESET CONTROL ------------------------------------------------------------------------------------------------------------
#define RESET_PIN OFF // OFF, Specify a pin# used to reset OnStep. Infreq
#define RESET_PIN_STATE LOW // OFF, Specify state of RESET_PIN pin otherwise OPEN when inactive. Infreq
//