Skip to content

Commit b7043b7

Browse files
committed
v0.6.320
1 parent 59d6af9 commit b7043b7

File tree

7 files changed

+32
-18
lines changed

7 files changed

+32
-18
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,15 @@ Work is in progress...
294294

295295
---
296296
## Version history
297+
#### v0.6.320
298+
- fixed ILI9225 display bug when used with VS1053B module
299+
- fixed ILI9225 plugin support
300+
297301
#### v0.6.313
298302
- added support for ILI9225 220x176 SPI displays
299-
- added support for I2S internal DAC, option I2S_INTERNAL (see [myoptions.h](exsamples/myoptions.h##L111) for exsample) \
303+
- added support for I2S internal DAC, option I2S_INTERNAL (see [myoptions.h](exsamples/myoptions.h#L111) for exsample) \
300304
_(this option worked only with esp32 core version==2.0.0)_
301-
- new option SOFT_AP_REBOOT_DELAY (see [myoptions.h](exsamples/myoptions.h##L112) for exsample)
305+
- new option SOFT_AP_REBOOT_DELAY (see [myoptions.h](exsamples/myoptions.h#L112) for exsample)
302306
- fixed MQTT connection when WiFi reconnected
303307
- fixed date display for ILI9341 displays
304308
- fixed garbage on volume control with displays ILI9341

exsamples/displayhandlers.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
**************************************************************/
77

8-
#if (DSP_MODEL==DSP_ST7735) || (DSP_MODEL==DSP_ST7789) || (DSP_MODEL==DSP_SSD1327) || (DSP_MODEL==DSP_ILI9341)
8+
#if (DSP_MODEL==DSP_ST7735) || (DSP_MODEL==DSP_ST7789) || (DSP_MODEL==DSP_SSD1327) || (DSP_MODEL==DSP_ILI9341) || (DSP_MODEL==DSP_ILI9225)
99

1010
#define WEATHER_REQUEST_INTERVAL 1800 //30min
1111
#define WEATHER_REQUEST_INTERVAL_FAULTY 30
@@ -158,6 +158,8 @@ void dsp_on_start(DspCore *dsp) {
158158
void dsp_on_init() {
159159
if (DSP_MODEL == DSP_ST7735 || (DSP_MODEL == DSP_SSD1327)) {
160160
hello.init(5, " * ", 1, TFT_LINEHGHT * 4 + 6, 0, ORANGE, TFT_BG);
161+
}else if(DSP_MODEL == DSP_ILI9225){
162+
hello.init(5, " * ", 1, TFT_LINEHGHT * 6 + 5, 0, ORANGE, TFT_BG);
161163
} else {
162164
hello.init(5, " * ", 2, TFT_LINEHGHT * 9 + 5, 0, ORANGE, TFT_BG);
163165
}

yoRadio/display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void Display::createCore0Task(){
202202
NULL, /* parameter of the task */
203203
4, /* no one flies higher than the Toruk */
204204
&TaskCore0, /* Task handle to keep track of created task */
205-
!xPortGetCoreID()); /* pin task to core 0 */
205+
(DSP_MODEL==DSP_ILI9225 && VS1053_CS!=255)?xPortGetCoreID():!xPortGetCoreID()); /* pin task to core 0 */
206206
//delay(500);
207207
}
208208

yoRadio/options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef options_h
22
#define options_h
33

4-
#define VERSION "0.6.313"
4+
#define VERSION "0.6.320"
55

66
/*******************************************************
77
DO NOT EDIT THIS FILE.

yoRadio/src/audioVS1053/audioVS1053Ex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,7 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
16341634
strcat(resp, "Host: ");
16351635
strcat(resp, hostwoext);
16361636
strcat(resp, "\r\n");
1637+
strcat(resp, "User-Agent: Mozilla/5.0 \r\n");
16371638
strcat(resp, "Icy-MetaData:1\r\n");
16381639
strcat(resp, "Authorization: Basic ");
16391640
strcat(resp, authorization);

yoRadio/src/displays/displayILI9225.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const char *mnths[12] = {"января","февраля","марта","апре
1313
extern unsigned char yofont5x7[];
1414
extern unsigned char yofont10x14[];
1515

16-
SPIClass hspi(VSPI);
16+
//SPIClass hspi(VSPI);
1717

1818
DspCore::DspCore(): TFT_22_ILI9225(TFT_RST, TFT_DC, TFT_CS, 0) {
1919

@@ -179,8 +179,8 @@ void DspCore::fillRect(int16_t x, int16_t y, int16_t w, int16_t h,
179179
}
180180

181181
void DspCore::initD(uint16_t &screenwidth, uint16_t &screenheight) {
182-
hspi.begin();
183-
begin(hspi);
182+
//hspi.begin();
183+
begin();
184184
invert(TFT_INVERT);
185185
setBackgroundColor(TFT_BG);
186186
clear();

yoRadio/src/displays/displayILI9225.h

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88
#define TFT_LINEHGHT 10
99
#define TFT_FRAMEWDT 4
1010
#define META_SIZE 2
11+
#ifndef TITLE_SIZE1
1112
#define TITLE_SIZE1 1
13+
#endif
14+
#ifndef TITLE_SIZE2
1215
#define TITLE_SIZE2 1
13-
16+
#endif
1417
#if !defined(SCROLLDELTA) || !defined(SCROLLTIME)
1518
#define SCROLLDELTA 3
1619
#define SCROLLTIME 30
@@ -20,9 +23,12 @@
2023
#define PLMITEMLENGHT 40
2124
#define PLMITEMHEIGHT 22
2225
#define TFT_FULLTIME 1
23-
26+
#ifndef TITLE_TOP1
2427
#define TITLE_TOP1 TFT_FRAMEWDT + META_SIZE * TFT_LINEHGHT + 8
28+
#endif
29+
#ifndef TITLE_TOP2
2530
#define TITLE_TOP2 TFT_FRAMEWDT + (META_SIZE+2) * TFT_LINEHGHT
31+
#endif
2632
#define TITLE_FG2 SILVER
2733

2834
class DspCore: public TFT_22_ILI9225 {
@@ -56,14 +62,6 @@ class DspCore: public TFT_22_ILI9225 {
5662
void loop(bool force=false);
5763
void setFont(uint8_t* font, bool monoSp=false );
5864
void setFont(const GFXfont *f = NULL);
59-
private:
60-
uint16_t swidth, sheight;
61-
uint16_t bgcolor, fgcolor;
62-
int16_t cursorx, cursory;
63-
bool gFont;
64-
char oldTimeBuf[20];
65-
uint8_t oldVolume;
66-
uint16_t wot, hot;
6765
void setTextSize(uint8_t s);
6866
void setTextColor(uint16_t fg, uint16_t bg=0x0000);
6967
void setCursor(int16_t x, int16_t y);
@@ -72,6 +70,15 @@ class DspCore: public TFT_22_ILI9225 {
7270
int16_t *y1, uint16_t *w, uint16_t *h);
7371
void fillRect(int16_t x, int16_t y, int16_t w, int16_t h,
7472
uint16_t color);
73+
private:
74+
uint16_t swidth, sheight;
75+
uint16_t bgcolor, fgcolor;
76+
int16_t cursorx, cursory;
77+
bool gFont;
78+
char oldTimeBuf[20];
79+
uint8_t oldVolume;
80+
uint16_t wot, hot;
81+
7582
};
7683

7784
extern DspCore dsp;

0 commit comments

Comments
 (0)