Skip to content

Commit 778dd1e

Browse files
committed
v0.9.313b
1 parent afe9d57 commit 778dd1e

File tree

15 files changed

+59
-38
lines changed

15 files changed

+59
-38
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ Rotation of the display:
145145

146146
- <span style="color: red; font-weight: bold; font-size: 22px;text-decoration: underline;">Arduino IDE version 2.x.x is not supported. Use Arduino IDE 1.8.19</span>
147147
- <span style="color: red; font-weight: bold; font-size: 22px;text-decoration: underline;">ESP32 core version 2.0.0 or higher is [required](https://github.com/espressif/arduino-esp32)!</span>
148+
- <span style="color: red; font-weight: bold; font-size: 22px;text-decoration: underline;">ESP32 core version 3.x.x or higher is not supported (yet)!</span>
148149
1. Generate a myoptions.h file for your hardware configuration using [this tool](https://e2002.github.io/docs/myoptions-generator.html).
149150
2. Put myoptions.h file next to yoRadio.ino.
150151
3. Replace file Arduino/libraries/Adafruit_GFX_Library/glcdfont.c with file [yoRadio/fonts/glcdfont.c](yoRadio/fonts/glcdfont.c)
@@ -229,6 +230,9 @@ Work is in progress...
229230

230231
---
231232
## Version history
233+
#### v0.9.313b
234+
- added support for ESP32-S3 boards (ESP32 S3 Dev Module) (esp32 cores version 3.x.x is not supported yet)
235+
- fixes in displaying sliders in the web interface
232236

233237
#### v0.9.300 (homeassistant component)
234238
- HA component >> bug fixes in the component for newer versions of Home Assistant

examples/myoptions.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
2727
/******************************************/
2828

2929
/* VSPI PINS. SCL(SCK, CLK) must be connected to pin 18
30-
SDA(MOSI, DIN, SDI) must be connected to pin 23 */
30+
SDA(MOSI, DIN, SDI) must be connected to pin 23
31+
for ESP32-S3 see ESP32-S3 Pin Reference http://wiki.fluidnc.com/en/hardware/ESP32-S3_Pin_Reference*/
3132
//#define TFT_CS 5 /* SPI CS pin */
3233
//#define TFT_RST 15 /* SPI RST pin. set to -1 and connect to Esp EN pin */
3334
//#define TFT_DC 4 /* SPI DC/RS pin */

images/board3.jpg

4.42 KB
Loading

yoRadio/data/www/style.css.gz

45 Bytes
Binary file not shown.

yoRadio/locale/displayL10n_en.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ const char jun[] PROGMEM = "june";
3131
const char jul[] PROGMEM = "july";
3232
const char aug[] PROGMEM = "august";
3333
const char sep[] PROGMEM = "september";
34-
const char oct[] PROGMEM = "october";
34+
const char octt[] PROGMEM = "october";
3535
const char nov[] PROGMEM = "november";
36-
const char dec[] PROGMEM = "december";
36+
const char decc[] PROGMEM = "december";
3737

3838
const char wn_N[] PROGMEM = "NORTH";
3939
const char wn_NNE[] PROGMEM = "NNE";
@@ -54,7 +54,7 @@ const char wn_NNW[] PROGMEM = "NNW";
5454

5555
const char* const dow[] PROGMEM = { sun, mon, tue, wed, thu, fri, sat };
5656
const char* const dowf[] PROGMEM = { sunf, monf, tuef, wedf, thuf, frif, satf };
57-
const char* const mnths[] PROGMEM = { jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec };
57+
const char* const mnths[] PROGMEM = { jan, feb, mar, apr, may, jun, jul, aug, sep, octt, nov, decc };
5858
const char* const wind[] PROGMEM = { wn_N, wn_NNE, wn_NE, wn_ENE, wn_E, wn_ESE, wn_SE, wn_SSE, wn_S, wn_SSW, wn_SW, wn_WSW, wn_W, wn_WNW, wn_NW, wn_NNW, wn_N };
5959

6060
const char const_PlReady[] PROGMEM = "[ready]";

yoRadio/locale/displayL10n_ru.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ const char jun[] PROGMEM = "июня";
3131
const char jul[] PROGMEM = "июля";
3232
const char aug[] PROGMEM = "августа";
3333
const char sep[] PROGMEM = "сентября";
34-
const char oct[] PROGMEM = "октября";
34+
const char octt[] PROGMEM = "октября";
3535
const char nov[] PROGMEM = "ноября";
36-
const char dec[] PROGMEM = "декабря";
36+
const char decc[] PROGMEM = "декабря";
3737

3838
const char wn_N[] PROGMEM = "СЕВ";
3939
const char wn_NNE[] PROGMEM = "ССВ";
@@ -54,7 +54,7 @@ const char wn_NNW[] PROGMEM = "ССЗ";
5454

5555
const char* const dow[] PROGMEM = { sun, mon, tue, wed, thu, fri, sat };
5656
const char* const dowf[] PROGMEM = { sunf, monf, tuef, wedf, thuf, frif, satf };
57-
const char* const mnths[] PROGMEM = { jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec };
57+
const char* const mnths[] PROGMEM = { jan, feb, mar, apr, may, jun, jul, aug, sep, octt, nov, decc };
5858
const char* const wind[] PROGMEM = { wn_N, wn_NNE, wn_NE, wn_ENE, wn_E, wn_ESE, wn_SE, wn_SSE, wn_S, wn_SSW, wn_SW, wn_WSW, wn_W, wn_WNW, wn_NW, wn_NNW, wn_N };
5959

6060
const char const_PlReady[] PROGMEM = "[готов]";

yoRadio/src/AsyncWebServer/AsyncWebSocket.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,11 @@ void AsyncWebSocketClient::binary(AsyncWebSocketMessageBuffer * buffer)
829829

830830
IPAddress AsyncWebSocketClient::remoteIP() {
831831
if(!_client) {
832+
#if ESP_IDF_VERSION_MAJOR < 5
832833
return IPAddress(0U);
834+
#else
835+
return IPAddress(0ul);
836+
#endif
833837
}
834838
return _client->remoteIP();
835839
}

yoRadio/src/AsyncWebServer/WebAuthentication.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,15 @@ static bool getMD5(uint8_t * data, uint16_t len, char * output){//33 bytes or mo
7171
memset(_buf, 0x00, 16);
7272
#ifdef ESP32
7373
mbedtls_md5_init(&_ctx);
74+
#if ESP_IDF_VERSION_MAJOR < 5
7475
mbedtls_md5_starts_ret(&_ctx);
7576
mbedtls_md5_update_ret(&_ctx, data, len);
7677
mbedtls_md5_finish_ret(&_ctx, _buf);
78+
#else
79+
mbedtls_md5_starts(&_ctx);
80+
mbedtls_md5_update(&_ctx, data, len);
81+
mbedtls_md5_finish(&_ctx, _buf);
82+
#endif
7783
#else
7884
MD5Init(&_ctx);
7985
MD5Update(&_ctx, data, len);

yoRadio/src/audioI2S/Audio.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4390,7 +4390,6 @@ bool Audio::setPinout(uint8_t BCLK, uint8_t LRC, uint8_t DOUT, int8_t DIN, int8_
43904390
#if(ESP_IDF_VERSION_MAJOR >= 4 && ESP_IDF_VERSION_MINOR >= 4)
43914391
m_pin_config.mck_io_num = MCK;
43924392
#endif
4393-
43944393
const esp_err_t result = i2s_set_pin((i2s_port_t) m_i2s_num, &m_pin_config);
43954394
return (result == ESP_OK);
43964395
}

yoRadio/src/core/controls.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void irBlink() {
213213
}
214214
}
215215

216-
void irNum(byte num) {
216+
void irNumber(uint8_t num) {
217217
uint16_t s;
218218
if (display.numOfNextStation == 0 && num == 0) return;
219219
display.putRequest(NEWMODE, NUMBERS);
@@ -292,43 +292,43 @@ void irLoop() {
292292
break;
293293
}
294294
case IR_0: {
295-
irNum(0);
295+
irNumber(0);
296296
break;
297297
}
298298
case IR_1: {
299-
irNum(1);
299+
irNumber(1);
300300
break;
301301
}
302302
case IR_2: {
303-
irNum(2);
303+
irNumber(2);
304304
break;
305305
}
306306
case IR_3: {
307-
irNum(3);
307+
irNumber(3);
308308
break;
309309
}
310310
case IR_4: {
311-
irNum(4);
311+
irNumber(4);
312312
break;
313313
}
314314
case IR_5: {
315-
irNum(5);
315+
irNumber(5);
316316
break;
317317
}
318318
case IR_6: {
319-
irNum(6);
319+
irNumber(6);
320320
break;
321321
}
322322
case IR_7: {
323-
irNum(7);
323+
irNumber(7);
324324
break;
325325
}
326326
case IR_8: {
327-
irNum(8);
327+
irNumber(8);
328328
break;
329329
}
330330
case IR_9: {
331-
irNum(9);
331+
irNumber(9);
332332
break;
333333
}
334334
case IR_AST: {

0 commit comments

Comments
 (0)