This commit is contained in:
e2002
2022-08-15 14:19:39 +03:00
parent 19fede3bdf
commit 442d970fd9
52 changed files with 1363 additions and 359 deletions

View File

@@ -1,7 +1,7 @@
#ifndef options_h
#define options_h
#define VERSION "0.7.017"
#define VERSION "0.7.330"
/*******************************************************
DO NOT EDIT THIS FILE.
@@ -64,22 +64,13 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
#ifndef NEXTION_TX
#define NEXTION_TX 255
#endif
#ifndef NEXTION_WEATHER_LAT
#define NEXTION_WEATHER_LAT "55.7512"
#endif
#ifndef NEXTION_WEATHER_LON
#define NEXTION_WEATHER_LON "37.6184"
#endif
#ifndef NEXTION_WEATHER_KEY
#define NEXTION_WEATHER_KEY ""
#endif
/* OLED I2C DISPLAY */
#ifndef I2C_SDA
#define I2C_SDA 13
#define I2C_SDA 21
#endif
#ifndef I2C_SCL
#define I2C_SCL 14
#define I2C_SCL 22
#endif
#ifndef I2C_RST
#define I2C_RST -1
@@ -176,12 +167,6 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
#ifndef TS_CS
#define TS_CS 255
#endif
#ifndef TS_ROTATE
#define TS_ROTATE 1
#endif
#ifndef TS_DBG
#define TS_DBG false
#endif
/* LCD DISPLAY */
#ifndef LCD_RS
@@ -209,49 +194,23 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
#endif
/* Other settings. You can overwrite them in the myoptions.h file */
#ifndef TFT_ROTATE
#define TFT_ROTATE 3 // display rotation. 0 - 0, 1 - 90, 2 - 180, 3 - 270 degrees
#endif
#ifndef TFT_CONTRAST
#define TFT_CONTRAST 55 // Nokia 5110 contrast
#endif
#ifndef TFT_INVERT
#define TFT_INVERT true // invert the display colors (usually true)
#endif
#ifndef VOL_STEP
#define VOL_STEP 1 // Encoder vol step
#endif
#ifndef VOL_ACCELERATION
#define VOL_ACCELERATION 200 // Encoder vol acceleration; 0 or 1 means disabled acceleration
#endif
#ifndef MUTE_PIN
#define MUTE_PIN 255 // MUTE Pin
#endif
#ifndef MUTE_VAL
#define MUTE_VAL HIGH // Write this to MUTE_PIN when player is stopped
#endif
#ifndef BRIGHTNESS_PIN
#define BRIGHTNESS_PIN 255 // BRIGHTNESS Pin
#endif
#ifndef PLAYER_FORCE_MONO
#define PLAYER_FORCE_MONO false // mono option - false stereo, true mono
#endif
#ifndef SNTP_SERVER
#define SNTP_SERVER "pool.ntp.org", "0.ru.pool.ntp.org" // custom ntp servers min 1 max 3 comma separated values
#endif
#ifndef I2S_INTERNAL
#define I2S_INTERNAL false // If true - use esp32 internal DAC
#endif
#ifndef SOFT_AP_REBOOT_DELAY
#define SOFT_AP_REBOOT_DELAY 0 // Delay in ms after which ESP is rebooting if it is in softAP mode (0 - disabled)
#endif
#ifndef ENABLE_VU_METER
#define ENABLE_VU_METER false // enable? vu meter for some displays
/*
* !!! Important !!!
* if you enable this feathure on the esp32 wroom, due to lack of memory, you must modify the file Arduino/libraries/AsyncTCP/src/AsyncTCP.cpp
* replace the line 221
* xTaskCreateUniversal(_async_service_task, "async_tcp", 8192 * 2, NULL, 3, &_async_service_task_handle, CONFIG_ASYNC_TCP_RUNNING_CORE);
* with
* xTaskCreateUniversal(_async_service_task, "async_tcp", 8192 / 2, NULL, 3, &_async_service_task_handle, CONFIG_ASYNC_TCP_RUNNING_CORE);
*/
#ifndef ROTATE_90
#define ROTATE_90 false // Optional 90 degree rotation for square displays
#endif
/*
*** ST7735 display submodel ***
@@ -273,8 +232,5 @@ INITR_REDTAB
#ifndef IR_TIMEOUT
#define IR_TIMEOUT 80 // kTimeout, see IRremoteESP8266 documentation
#endif
#ifndef IR_TLP
#define IR_TLP 40 // kTolerancePercentage, see IRremoteESP8266 documentation
#endif
#endif