-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
185 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* © 2024 Peter Cole | ||
* | ||
* This is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* It is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this code. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* @file myConfig.example.h | ||
* @brief This is an example myConfig.h outlining the available options that can be set | ||
* @details | ||
* DO NOT EDIT THIS FILE! Copy it to myConfig.h and edit that. | ||
* Each available option is listed here with all commented out. | ||
* Uncomment and edit any options as required, noting you may not need to do this at all. | ||
* Default options are commented as such and will be used if you do not have a myConfig.h file. | ||
*/ | ||
|
||
/** | ||
* @brief Options to define the log level which controls output to the EX-Display serial console. | ||
*/ | ||
// #define LOG_LEVEL LOG_NONE // Do not display any output | ||
// #define LOG_LEVEL LOG_ERROR // Display errors only | ||
// #define LOG_LEVEL LOG_WARN // Display warnings and errors (this is the default) | ||
// #define LOG_LEVEL LOG_INFO // Display information, warnings, and errors | ||
// #define LOG_LEVEL LOG_DEBUG // Display absolutely everything | ||
|
||
/** | ||
* @brief Options to define which serial connections to use for the serial console and connecting to EX-CommandStation. | ||
*/ | ||
// #define CONSOLE_STREAM Serial // Serial console defaults to Serial (default on all platforms) | ||
// #define COMMANDSTATION_STREAM Serial // EX-CommandStation connected to Serial (default on Uno) | ||
// #define COMMANDSTATION_STREAM Serial2 // EX-CommandStation connected to Serial2 (default on ESP32) | ||
// #define COMMANDSTATION_STREAM Serial6 // EX-CommandStation connected to Serial6 (default on F411RE) | ||
|
||
/** | ||
* @brief Option to change how long the EX-Display version is displayed, in milliseconds. | ||
*/ | ||
// #define STARTUP_INFO_DELAY 3000 // default is 3 seconds/3000ms - Increase/decrease if desired |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* © 2024 Peter Cole | ||
* | ||
* This is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* It is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this code. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* @file myDevices.example.h | ||
* @brief This is an example myDevices.h outlining the available devices that can be configured | ||
* @details | ||
* DO NOT EDIT THIS FILE! Copy it to myDevices.h and edit that. | ||
* Each available type has an example and description. | ||
* Note that there are no default devices as there are too many available user options to provide a sensible default. | ||
* Any parameters with prefaced by * are optional and can be ommitted as per the examples displayed. | ||
* | ||
* Each display has an auto generated ID starting at 0, and these are generated in the order the displays are defined in | ||
* myDevices.h. | ||
*/ | ||
|
||
/** | ||
* Display devices using the TFT_eSPI display library | ||
* | ||
* USER_DISPLAY(TFT_eSPIDisplay, rotation, text size, text colour, background colour, *chip select pin) | ||
* | ||
* Example for a single display with rotation set to 1, text size 1, white text colour, and black background colour | ||
* Omit the final chip select pin parameter for a single display | ||
* USER_DISPLAY(TFT_eSPIDisplay, 1, 1, TFT_WHITE, TFT_BLACK) | ||
* | ||
* Example for two displays as above, but specifying the chip select pin to manually switch the displays | ||
* This is necessary as the TFT_eSPI library doesn't directly support multiple displays | ||
* USER_DISPLAY(TFT_eSPIDisplay, 1, 1, TFT_WHITE, TFT_BLACK, 15) | ||
* USER_DISPLAY(TFT_eSPIDisplay, 1, 1, TFT_WHITE, TFT_BLACK, 16) | ||
* | ||
* Uncomment and edit one or more lines below as required for your setup. | ||
*/ | ||
|
||
// USER_DISPLAY(TFT_eSPIDisplay, 1, 1, TFT_WHITE, TFT_BLACK) | ||
// USER_DISPLAY(TFT_eSPIDisplay, 1, 1, TFT_WHITE, TFT_BLACK, 15) | ||
// USER_DISPLAY(TFT_eSPIDisplay, 1, 1, TFT_WHITE, TFT_BLACK, 16) | ||
|
||
/** | ||
* Display devices using the MCUFRIEND_kbv display library | ||
* | ||
* USER_DISPLAY(MCU_Display, ......) | ||
* | ||
* Uncomment and edit one or more lines below as required for your setup. | ||
*/ | ||
|
||
/** | ||
* Display devices using **OLED**?? library | ||
* | ||
* USER_DISPLAY(OLED_Display, ......) | ||
* | ||
* Uncomment and edit one or more lines below as required for your setup. | ||
*/ | ||
|
||
/** | ||
* Input devices for touch screens using the TFT_eSPI display library by bodmer, which require an existing display | ||
* instance to be defined | ||
* | ||
* USER_INPUT(TFT_eSPITouch, display ID) | ||
* | ||
* Example using the first defined TFT_eSPIDisplay instance which will have ID 0 | ||
* USER_INPUT(TFT_eSPITouch, 0) | ||
* | ||
* Uncomment and edit one or more lines below as required for your setup. | ||
*/ | ||
|
||
// USER_INPUT(TFT_eSPITouch, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters