Skip to content

Commit

Permalink
v0.7.330
Browse files Browse the repository at this point in the history
  • Loading branch information
e2002 committed Aug 15, 2022
1 parent 19fede3 commit 442d970
Show file tree
Hide file tree
Showing 52 changed files with 1,361 additions and 357 deletions.
66 changes: 49 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [Software dependencies](#dependencies)
- [Hardware setup](#hardware-setup)
- [Quick start](#quick-start)
- [Detailed start](https://github.com/e2002/yoradio/wiki/How-to-flash)
- [Update](#update)
- [Update over web-interface](#update-over-web-interface)
- [Controls](Controls.md)
Expand Down Expand Up @@ -63,17 +64,19 @@ https://www.aliexpress.com/item/33009687492.html

---
## Connection tables
| SPI Display | ESP-32 | options.h |
##### SPI Displays
| Display | ESP-32 | myoptions.h |
| ------ | ------ | ------ |
| GND | GND | - |
| VCC | +5v | - |
| SCL | 18 | - |
| SDA | 23 | - |
| CSL | 5* | TFT_CS |
| RSTL | 15* | TFT_RST |
| RST | 15* | TFT_RST |
| DCL | 4* | TFT_DC |

| NOKIA5110 | ESP-32 | options.h |
##### Nokia 5110
| NOKIA5110 | ESP-32 | myoptions.h |
| ------ | ------ | ------ |
| RST | 15* | TFT_RST |
| CE | 5* | TFT_CS |
Expand All @@ -83,14 +86,16 @@ https://www.aliexpress.com/item/33009687492.html
| VCC | +3v3 | - |
| GND | GND | - |

| I2C Display | ESP-32 | options.h |
##### I2C Displays
| Display | ESP-32 | myoptions.h |
| ------ | ------ | ------ |
| GND | GND | - |
| VCC | +5v | - |
| SDA | 13* | I2C_SDA |
| SCL | 14* | I2C_SCL |
| SDA | 21* | I2C_SDA |
| SCL | 22* | I2C_SCL |

| LCD 1602 | ESP-32 | options.h |
##### LCD Displays (1602, 2004)
| Display | ESP-32 | myoptions.h |
| ------ | ------ | ------ |
| GND | GND | - |
| VCC | +5v | - |
Expand All @@ -101,7 +106,8 @@ https://www.aliexpress.com/item/33009687492.html
| D6 | any* | LCD_D6 |
| D7 | any* | LCD_D7 |

| Touchscreen | ESP-32 | options.h |
##### Touchscreen
| Touchscreen | ESP-32 | myoptions.h |
| ------ | ------ | ------ |
| GND | GND | - |
| VCC | +3.3v | - |
Expand All @@ -111,15 +117,17 @@ https://www.aliexpress.com/item/33009687492.html
| IRQ | N/C | - |
| CS | any* | TS_CS |

| I2S DAC | ESP-32 | options.h |
##### I2S DAC
| I2S DAC | ESP-32 | myoptions.h |
| ------ | ------ | ------ |
| GND | GND | - |
| VIN | +5v | - |
| DOUT(DIN) | 27* | I2S_DOUT |
| BCLK | 26* | I2S_BCLK |
| LRC(WSEL) | 25* | I2S_LRC |

| VS1053 | ESP-32 | options.h |
##### VS1053
| VS1053 | ESP-32 | myoptions.h |
| ------ | ------ | ------ |
| XDCS | 25* | VS1053_DCS |
| XCS | 27* | VS1053_CS |
Expand All @@ -132,10 +140,19 @@ https://www.aliexpress.com/item/33009687492.html
| DGND | GND | - |

_\#\# Important! You must choose between I2S DAC and VS1053 by disabling the second module in the settings (see below)_
##### Nextion Displays
| Display | ESP-32 | myoptions.h |
| ------ | ------ | ------ |
| GND | GND | - |
| VCC | +5v | - |
| TX | 14* | NEXTION_RX |
| RX | 15* | NEXTION_TX |

| Buttons, Encoder, LED, IR, Joystick | ESP-32 | options.h |
##### Controls
| Buttons, Encoder, LED, IR, Joystick | ESP-32 | myoptions.h |
| ------ | ------ | ------ |
| GND | GND | - |
| 5v | 3v3 | - |
| PIN | any* | ENC_BTNx, BTN_xxx, LED_BUILTIN, IR_PIN |

_\* Any free pin, configured in myoptions.h_ \
Expand All @@ -150,7 +167,9 @@ _\** GPIO 16 and 17 are used by PSRAM on the WROVER modules._
\* _if you need MQTT support_

#### Tool:
[ESP32 Filesystem Uploader](https://randomnerdtutorials.com/install-esp32-filesystem-uploader-arduino-ide/)
[ESP32 Filesystem Uploader](https://randomnerdtutorials.com/install-esp32-filesystem-uploader-arduino-ide/) \

**See [wiki](https://github.com/e2002/yoradio/wiki/How-to-flash#preparing) for details**

---
## Hardware setup
Expand Down Expand Up @@ -206,6 +225,8 @@ _\*this step can be skipped if you add WiFiSSID WiFiPassword pairs to the [yoRad
**Localization:**
Если Adafruit_GFX ещё не русифицирована, русифицировать её, заменив файл Arduino/libraries/Adafruit_GFX_Library/glcdfont.c файлом [yoRadio/fonts/glcdfont.c](yoRadio/fonts/glcdfont.c)

**See [wiki](https://github.com/e2002/yoradio/wiki/How-to-flash#build--flash) for details**

---
## Update
1. Backup your settings: \
Expand Down Expand Up @@ -291,11 +312,22 @@ download _http://\<yoradioip\>/data/playlist.csv_ and _http://\<yoradioip\>/data

---
## Plugins
At the moment, you can display additional information on the display by writing a few additional functions. There is no documentation yet, you will have to deal with the example, which is in file [exsamples/plugins/displayhandlers.ino](exsamples/plugins/displayhandlers.ino).\
At the moment, you can display additional information on the display by writing a few additional functions. There is no documentation yet, you will have to deal with the examples, which is in directory [exsamples/plugins/](https://github.com/e2002/yoradio/tree/main/exsamples/plugins).\
Work is in progress...

---
## Version history
#### v0.7.330
**!!! a [full update](#update-over-web-interface) with Sketch data upload is required. After updating please press CTRL+F5 in browser !!!** \
**Please backup playlist.csv and wifi.csv before updating.**
- added the ability to configure parameters through the [web interface](images/settings.png)
- new parameter BRIGHTNESS_PIN - pin for adjusting the brightness of the display. Details in [exsamples/myoptions.h](exsamples/myoptions.h#L105)
- the weather plugin is integrated into the code, the settings are made through the web interface

_**PS:** Due to the change in the storage location of settings in the ESP memory, settings such as:_ \
**smartstart, audioinfo, time zone, IR remote, last volume level, last played station, equalizer** \
_will have to be configured again through the web interface. Please understand and forgive._

#### v0.7.017
- fix initialization of some vs1053b green boards
- fix VU initialization on vs1053b boards
Expand All @@ -317,7 +349,7 @@ Work is in progress...

#### v0.6.494
- adding VU meter for displays ST7735 160x128, ST7735 128x128, ILI9341 320x240, ST7789 320x240 \
option ENABLE_VU_METER (see [myoptions.h](exsamples/myoptions.h#L113) for exsample) \
option ENABLE_VU_METER (see [myoptions.h](exsamples/myoptions.h) for exsample) \
**!!! 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** \
Expand All @@ -344,8 +376,8 @@ Work is in progress...

#### v0.6.355
- added support for ST7789 1.3' 240x240 SPI displays \
_!!! Important !!! This display requires further development when used in conjunction with the VS1053 module. \
See this link for details https://www.instructables.com/Adding-CS-Pin-to-13-LCD/_
_!!! Important !!! This display requires further development when used in conjunction with the VS1053 module._ \
See this link for details https://www.instructables.com/Adding-CS-Pin-to-13-LCD/

#### v0.6.348
- fixed display bugs in the rssibitrate plugin
Expand All @@ -368,7 +400,7 @@ Work is in progress...
- added support for ILI9225 220x176 SPI displays
- added support for I2S internal DAC, option I2S_INTERNAL (see [myoptions.h](exsamples/myoptions.h#L111) for exsample) \
_(this option worked only with esp32 core version==2.0.0)_
- new option SOFT_AP_REBOOT_DELAY (see [myoptions.h](exsamples/myoptions.h#L112) for exsample)
- new option SOFT_AP_REBOOT_DELAY (see [myoptions.h](exsamples/myoptions.h) for exsample)
- fixed MQTT connection when WiFi reconnected
- fixed date display for ILI9341 displays
- fixed garbage on volume control with displays ILI9341
Expand Down
57 changes: 23 additions & 34 deletions exsamples/myoptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
/* DSP_MODEL. See description/available values in the options.h file */
/* This option is required. Use DSP_DUMMY if no display is connected */
#define DSP_MODEL DSP_DUMMY
/*
* !!! Important !!!
* if you use colored TFT displays with 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);
*/
/******************************************/

/* SPI PINS. SCL(SCK, CLK) must be connected to pin 18
Expand All @@ -25,9 +33,6 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
/* NEXTION */
//#define NEXTION_RX 255 /* Nextion RX pin */
//#define NEXTION_TX 255 /* Nextion TX pin */
//#define NEXTION_WEATHER_LAT "55.7512" /* Nextion latitude for display Weather */
//#define NEXTION_WEATHER_LON "37.6184" /* Nextion longitude for display Weather */
//#define NEXTION_WEATHER_KEY "" /* Openweathermap API key https://openweathermap.org/appid */

/* I2C PINS */
//#define I2C_SDA 21 /* I2C SDA pin. It is best to connect to pin 21. */
Expand All @@ -41,11 +46,12 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
/******************************************/

/* VS1053 PINS. VS1053 SCK must be connected to pin 18
VS1053 MISO must be connected to pin 19
VS1053 MOSI must be connected to pin 23 */
//#define VS1053_CS 255 /* Should be set to 255 if the board is not used */
//#define VS1053_DCS 25
//#define VS1053_DREQ 26
//#define VS1053_RST -1 /* Set to -1 if connected to Esp EN pin */
//#define VS1053_CS 255 /* XCS pin. Should be set to 255 if the board is not used */
//#define VS1053_DCS 25 /* XDCS pin. */
//#define VS1053_DREQ 26 /* DREQ pin. */
//#define VS1053_RST -1 /* XRESET pin. Set to -1 if connected to Esp EN pin */
/******************************************/

/* ENCODER */
Expand Down Expand Up @@ -91,41 +97,25 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
DO must be connected to pin 19
IRQ - not connected */
//#define TS_CS 255 /* Touch screen CS pin
//#define TS_ROTATE 1 /* Touch screen rotation. 0 - 0, 1 - 90, 2 - 180, 3 - 270 degrees */
//#define TS_DBG false /* Generate debug to Serial output */
/******************************************/

/* Other settings. */
//#define DTYPE INITR_BLACKTAB /* ST7735 display submodel */
/* Could be one of: */
/* INITR_BLACKTAB 1.8' https://aliexpress.com/item/1005002822797745.html */
/* (See this note If INITR_BLACKTAB have a noisy line on one side of the screen https://github.com/e2002/yoradio#note-if-initr_blacktab-dsp-have-a-noisy-line-on-one-side-of-the-screen-then-in-adafruit_st7735cpp ) */
/* INITR_144GREENTAB // 1.44' https://aliexpress.com/item/1005002822797745.html */
/* INITR_MINI160x80 // 0.96' 160x80 ST7735S https://???? */
/* INITR_GREENTAB */
/* INITR_REDTAB */
/* Could be one of: */
/* INITR_BLACKTAB 1.8' https://aliexpress.com/item/1005002822797745.html */
/* (See this note If INITR_BLACKTAB have a noisy line on one side of the screen https://github.com/e2002/yoradio#note-if-initr_blacktab-dsp-have-a-noisy-line-on-one-side-of-the-screen-then-in-adafruit_st7735cpp ) */
/* INITR_144GREENTAB // 1.44' https://aliexpress.com/item/1005002822797745.html */
/* INITR_MINI160x80 // 0.96' 160x80 ST7735S https://???? */
/* INITR_GREENTAB */
/* INITR_REDTAB */
//#define LED_BUILTIN 2 /* LED Pin */
//#define TFT_ROTATE 3 /* Display rotation. 0 - 0, 1 - 90, 2 - 180, 3 - 270 degrees */
//#define TFT_CONTRAST 55 /* Nokia 5110 contrast */
//#define TFT_INVERT true /* Invert the display colors (usually true) */
//#define VOL_STEP 1 /* Volume control step */
//#define VOL_ACCELERATION 200 /* Encoder vol acceleration; 0 or 1 means disabled acceleration */
//#define MUTE_PIN 255 /* MUTE Pin */
//#define MUTE_VAL HIGH /* Write this to MUTE_PIN when player is stopped */
//#define PL_WITH_NUMBERS /* show the number of station in the playlist */
//#define BRIGHTNESS_PIN 255 /* Pin for adjusting the brightness of the display (output 0 - 3v3) */
//#define PLAYER_FORCE_MONO false /* mono option on boot - false stereo, true mono */
//#define SNTP_SERVER "pool.ntp.org", "0.ru.pool.ntp.org" /* custom ntp servers min 1 max 3 comma separated values */
//#define I2S_INTERNAL false /* If true - use esp32 internal DAC */
//#define SOFT_AP_REBOOT_DELAY 0 /* Delay in milliseconds after which ESP is rebooting if it is in softAP mode (0 - disabled) */
//#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);
*/
//#define ROTATE_90 false /* Optional 90 degree rotation for square displays */

/* VU settings. See the default settings for your display in file yoRadio/display_vu.h */
/************************************************************************************************************************************************************************************/
/* vu left | vu top | band width | band height | band space | num of bands | fade speed | horisontal | Max Bands Color | Min Bands Color */
Expand All @@ -136,7 +126,6 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
/* IR control */
//#define IR_PIN 255
//#define IR_TIMEOUT 80 /* see kTimeout description in IRremoteESP8266 exsample https://github.com/crankyoldgit/IRremoteESP8266/blob/master/examples/IRrecvDumpV2/IRrecvDumpV2.ino */
//#define IR_TLP 40 /* see kTolerancePercentage description in IRremoteESP8266 exsample https://github.com/crankyoldgit/IRremoteESP8266/blob/master/examples/IRrecvDumpV2/IRrecvDumpV2.ino */

/******************************************/

Expand Down
Binary file added images/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 442d970

Please sign in to comment.