v0.8.02b
This commit is contained in:
@@ -299,6 +299,10 @@ Work is in progress...
|
|||||||
|
|
||||||
---
|
---
|
||||||
## Version history
|
## Version history
|
||||||
|
#### v0.8.02b
|
||||||
|
- fixed artifacts when displaying the volume level
|
||||||
|
- changes in mytheme.h . Added colors COLOR_PL_CURRENT, COLOR_PL_CURRENT_BG, COLOR_PL_CURRENT_FILL. Details in [exsamples/mytheme.h](exsamples/mytheme.h)
|
||||||
|
|
||||||
#### v0.8.01b
|
#### v0.8.01b
|
||||||
- fix INITR_MINI160x80 compiling error
|
- fix INITR_MINI160x80 compiling error
|
||||||
- fix ENC_INTERNALPULLUP descriotion in exsamples/myoptions.h
|
- fix ENC_INTERNALPULLUP descriotion in exsamples/myoptions.h
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
//#define COLOR_BACKGROUND 255, 255, 0 /* background */
|
//#define COLOR_BACKGROUND 255, 255, 0 /* background */
|
||||||
//#define COLOR_STATION_NAME 0, 0, 0 /* station name */
|
//#define COLOR_STATION_NAME 0, 0, 0 /* station name */
|
||||||
//#define COLOR_STATION_BG 91, 118, 255 /* station name background */
|
//#define COLOR_STATION_BG 91, 118, 255 /* station name background */
|
||||||
//#define COLOR_STATION_FILL 231, 211, 90 /* station name fill background */
|
//#define COLOR_STATION_FILL 91, 118, 255 /* station name fill background */
|
||||||
//#define COLOR_SNG_TITLE_1 255, 0, 0 /* first title */
|
//#define COLOR_SNG_TITLE_1 255, 0, 0 /* first title */
|
||||||
//#define COLOR_SNG_TITLE_2 0, 0, 0 /* second title */
|
//#define COLOR_SNG_TITLE_2 0, 0, 0 /* second title */
|
||||||
//#define COLOR_WEATHER 255, 0, 216 /* weather string */
|
//#define COLOR_WEATHER 255, 0, 216 /* weather string */
|
||||||
@@ -39,6 +39,9 @@
|
|||||||
//#define COLOR_DIGITS 100, 100, 255 /* volume / station number */
|
//#define COLOR_DIGITS 100, 100, 255 /* volume / station number */
|
||||||
//#define COLOR_DIVIDER 0, 255, 0 /* divider color (DSP_ST7789, DSP_ILI9341, DSP_ILI9225) */
|
//#define COLOR_DIVIDER 0, 255, 0 /* divider color (DSP_ST7789, DSP_ILI9341, DSP_ILI9225) */
|
||||||
//#define COLOR_BITRATE 231, 211, 90 /* bitrate */
|
//#define COLOR_BITRATE 231, 211, 90 /* bitrate */
|
||||||
|
//#define COLOR_PL_CURRENT 0, 0, 0 /* playlist current item */
|
||||||
|
//#define COLOR_PL_CURRENT_BG 91, 118, 255 /* playlist current item background */
|
||||||
|
//#define COLOR_PL_CURRENT_FILL 91, 118, 255 /* playlist current item fill background */
|
||||||
//#define COLOR_PLAYLIST_0 255, 0, 0 /* playlist string 0 */
|
//#define COLOR_PLAYLIST_0 255, 0, 0 /* playlist string 0 */
|
||||||
//#define COLOR_PLAYLIST_1 0, 255, 0 /* playlist string 1 */
|
//#define COLOR_PLAYLIST_1 0, 255, 0 /* playlist string 1 */
|
||||||
//#define COLOR_PLAYLIST_2 255, 0, 255 /* playlist string 2 */
|
//#define COLOR_PLAYLIST_2 255, 0, 255 /* playlist string 2 */
|
||||||
|
|||||||
@@ -49,34 +49,37 @@ uint16_t Config::color565(uint8_t r, uint8_t g, uint8_t b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Config::loadTheme(){
|
void Config::loadTheme(){
|
||||||
theme.background = color565(COLOR_BACKGROUND);
|
theme.background = color565(COLOR_BACKGROUND);
|
||||||
theme.meta = color565(COLOR_STATION_NAME);
|
theme.meta = color565(COLOR_STATION_NAME);
|
||||||
theme.metabg = color565(COLOR_STATION_BG);
|
theme.metabg = color565(COLOR_STATION_BG);
|
||||||
theme.metafill = color565(COLOR_STATION_FILL);
|
theme.metafill = color565(COLOR_STATION_FILL);
|
||||||
theme.title1 = color565(COLOR_SNG_TITLE_1);
|
theme.title1 = color565(COLOR_SNG_TITLE_1);
|
||||||
theme.title2 = color565(COLOR_SNG_TITLE_2);
|
theme.title2 = color565(COLOR_SNG_TITLE_2);
|
||||||
theme.digit = color565(COLOR_DIGITS);
|
theme.digit = color565(COLOR_DIGITS);
|
||||||
theme.div = color565(COLOR_DIVIDER);
|
theme.div = color565(COLOR_DIVIDER);
|
||||||
theme.weather = color565(COLOR_WEATHER);
|
theme.weather = color565(COLOR_WEATHER);
|
||||||
theme.vumax = color565(COLOR_VU_MAX);
|
theme.vumax = color565(COLOR_VU_MAX);
|
||||||
theme.vumin = color565(COLOR_VU_MIN);
|
theme.vumin = color565(COLOR_VU_MIN);
|
||||||
theme.clock = color565(COLOR_CLOCK);
|
theme.clock = color565(COLOR_CLOCK);
|
||||||
theme.seconds = color565(COLOR_SECONDS);
|
theme.seconds = color565(COLOR_SECONDS);
|
||||||
theme.dow = color565(COLOR_DAY_OF_W);
|
theme.dow = color565(COLOR_DAY_OF_W);
|
||||||
theme.date = color565(COLOR_DATE);
|
theme.date = color565(COLOR_DATE);
|
||||||
theme.heap = color565(COLOR_HEAP);
|
theme.heap = color565(COLOR_HEAP);
|
||||||
theme.buffer = color565(COLOR_BUFFER);
|
theme.buffer = color565(COLOR_BUFFER);
|
||||||
theme.ip = color565(COLOR_IP);
|
theme.ip = color565(COLOR_IP);
|
||||||
theme.vol = color565(COLOR_VOLUME_VALUE);
|
theme.vol = color565(COLOR_VOLUME_VALUE);
|
||||||
theme.rssi = color565(COLOR_RSSI);
|
theme.rssi = color565(COLOR_RSSI);
|
||||||
theme.bitrate = color565(COLOR_BITRATE);
|
theme.bitrate = color565(COLOR_BITRATE);
|
||||||
theme.volbarout = color565(COLOR_VOLBAR_OUT);
|
theme.volbarout = color565(COLOR_VOLBAR_OUT);
|
||||||
theme.volbarin = color565(COLOR_VOLBAR_IN);
|
theme.volbarin = color565(COLOR_VOLBAR_IN);
|
||||||
theme.playlist[0] = color565(COLOR_PLAYLIST_0);
|
theme.plcurrent = color565(COLOR_PL_CURRENT);
|
||||||
theme.playlist[1] = color565(COLOR_PLAYLIST_1);
|
theme.plcurrentbg = color565(COLOR_PL_CURRENT_BG);
|
||||||
theme.playlist[2] = color565(COLOR_PLAYLIST_2);
|
theme.plcurrentfill = color565(COLOR_PL_CURRENT_FILL);
|
||||||
theme.playlist[3] = color565(COLOR_PLAYLIST_3);
|
theme.playlist[0] = color565(COLOR_PLAYLIST_0);
|
||||||
theme.playlist[4] = color565(COLOR_PLAYLIST_4);
|
theme.playlist[1] = color565(COLOR_PLAYLIST_1);
|
||||||
|
theme.playlist[2] = color565(COLOR_PLAYLIST_2);
|
||||||
|
theme.playlist[3] = color565(COLOR_PLAYLIST_3);
|
||||||
|
theme.playlist[4] = color565(COLOR_PLAYLIST_4);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T> int Config::eepromWrite(int ee, const T& value) {
|
template <class T> int Config::eepromWrite(int ee, const T& value) {
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ struct theme_t {
|
|||||||
uint16_t bitrate;
|
uint16_t bitrate;
|
||||||
uint16_t volbarout;
|
uint16_t volbarout;
|
||||||
uint16_t volbarin;
|
uint16_t volbarin;
|
||||||
|
uint16_t plcurrent;
|
||||||
|
uint16_t plcurrentbg;
|
||||||
|
uint16_t plcurrentfill;
|
||||||
uint16_t playlist[5];
|
uint16_t playlist[5];
|
||||||
};
|
};
|
||||||
struct config_t
|
struct config_t
|
||||||
|
|||||||
@@ -78,13 +78,13 @@ void Display::_buildPager(){
|
|||||||
#if DSP_MODEL==DSP_NOKIA5110
|
#if DSP_MODEL==DSP_NOKIA5110
|
||||||
_plcurrent.init("*", playlistConf, 0, 1);
|
_plcurrent.init("*", playlistConf, 0, 1);
|
||||||
#else
|
#else
|
||||||
_plcurrent.init("*", playlistConf, config.theme.meta, config.theme.metabg);
|
_plcurrent.init("*", playlistConf, config.theme.plcurrent, config.theme.plcurrentbg);
|
||||||
#endif
|
#endif
|
||||||
#ifndef HIDE_TITLE2
|
#ifndef HIDE_TITLE2
|
||||||
_title2 = new ScrollWidget("*", title2Conf, config.theme.title2, config.theme.background);
|
_title2 = new ScrollWidget("*", title2Conf, config.theme.title2, config.theme.background);
|
||||||
#endif
|
#endif
|
||||||
#if !defined(DSP_LCD) && DSP_MODEL!=DSP_NOKIA5110
|
#if !defined(DSP_LCD) && DSP_MODEL!=DSP_NOKIA5110
|
||||||
_plbackground = new FillWidget(playlBGConf, config.theme.metafill);
|
_plbackground = new FillWidget(playlBGConf, config.theme.plcurrentfill);
|
||||||
_metabackground = new FillWidget(metaBGConf, config.theme.metafill);
|
_metabackground = new FillWidget(metaBGConf, config.theme.metafill);
|
||||||
#endif
|
#endif
|
||||||
#if DSP_MODEL==DSP_NOKIA5110
|
#if DSP_MODEL==DSP_NOKIA5110
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef options_h
|
#ifndef options_h
|
||||||
#define options_h
|
#define options_h
|
||||||
|
|
||||||
#define VERSION "0.8.01b"
|
#define VERSION "0.8.02b"
|
||||||
|
|
||||||
/*******************************************************
|
/*******************************************************
|
||||||
DO NOT EDIT THIS FILE.
|
DO NOT EDIT THIS FILE.
|
||||||
@@ -307,6 +307,15 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
|
|||||||
#ifndef COLOR_DIVIDER
|
#ifndef COLOR_DIVIDER
|
||||||
#define COLOR_DIVIDER 165, 162, 132
|
#define COLOR_DIVIDER 165, 162, 132
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef COLOR_PL_CURRENT
|
||||||
|
#define COLOR_PL_CURRENT 0, 0, 0
|
||||||
|
#endif
|
||||||
|
#ifndef COLOR_PL_CURRENT_BG
|
||||||
|
#define COLOR_PL_CURRENT_BG 231, 211, 90
|
||||||
|
#endif
|
||||||
|
#ifndef COLOR_PL_CURRENT_FILL
|
||||||
|
#define COLOR_PL_CURRENT_FILL 231, 211, 90
|
||||||
|
#endif
|
||||||
#ifndef COLOR_PLAYLIST_0
|
#ifndef COLOR_PLAYLIST_0
|
||||||
#define COLOR_PLAYLIST_0 115, 115, 115
|
#define COLOR_PLAYLIST_0 115, 115, 115
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ void SliderWidget::_draw() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SliderWidget::_clear() {
|
void SliderWidget::_clear() {
|
||||||
_oldvalwidth = 0;
|
// _oldvalwidth = 0;
|
||||||
dsp.fillRect(_config.left, _config.top, _width, _height, _bgcolor);
|
dsp.fillRect(_config.left, _config.top, _width, _height, _bgcolor);
|
||||||
}
|
}
|
||||||
/************************
|
/************************
|
||||||
|
|||||||
Reference in New Issue
Block a user