88#define TFT_FRAMEWDT 1
99#define MAX_WIDTH DSP_WIDTH-TFT_FRAMEWDT*2
1010#define BOOTLOGOTOP 8
11- #define IP_WEATHER_SHARED true // these widgets share the same space
12- #define RSSI_BATT_SHARED true // these widgets share the same space
1311
1412#if CLOCKFONT == YO_MONO
1513 #define FONTSHIFT 0
@@ -34,6 +32,7 @@ const BootData _bootConfig PROGMEM = {
3432const char _layoutNames [][64 ] PROGMEM = {
3533 "Default" ,
3634 "Default (no VU)" ,
35+ "Big VU" ,
3736};
3837
3938/* LAYOUT DEFINITIONS */
@@ -72,11 +71,11 @@ const LayoutData _layouts[] PROGMEM = {
7271 .clockMove = { TFT_FRAMEWDT + (44 /2 )+ 2 , 38 + FONTSHIFT , 0 },
7372 .weatherMove = { 0 , 0 , -1 },
7473 .weatherMoveVU = { 0 , 0 , -1 },
75- /* Rotated so the bands run horizontally: ch = width*2+space = 15px tall and
76- cw = height = 44px long, fitting the y=38..54 line beside the clock */
7774 .rotateVU = true,
75+ .shareWeatherIP = true, // IP and weather share the bottom row (both at top 55)
76+ .shareBattRSSI = true, // RSSI and battery share the same row (both at top 55)
7877 },
79- { // Default
78+ { // Default (no VU)
8079 /* SCROLLS {{ left, top, fontsize, align }, buffsize, uppercase, width, scrolldelay, scrolldelta, scrolltime } */
8180 .metaConf = {{ TFT_FRAMEWDT , TFT_FRAMEWDT , 2 , WA_LEFT }, 140 , true, MAX_WIDTH , SCROLLDELAY , 2 , SCROLLTIME * 7 /4 },
8281 .title1Conf = {{ TFT_FRAMEWDT , 19 , 1 , WA_LEFT }, 140 , true, MAX_WIDTH - 6 * 4 , SCROLLDELAY , 1 , SCROLLTIME },
@@ -111,6 +110,43 @@ const LayoutData _layouts[] PROGMEM = {
111110 /* Rotated so the bands run horizontally: ch = width*2+space = 15px tall and
112111 cw = height = 44px long, fitting the y=38..54 line beside the clock */
113112 .rotateVU = true,
113+ .shareWeatherIP = true, // IP and weather share the bottom row (both at top 55)
114+ .shareBattRSSI = true, // RSSI and battery share the same row (both at top 55)
115+ },
116+ { // Big VU
117+ /* SCROLLS {{ left, top, fontsize, align }, buffsize, uppercase, width, scrolldelay, scrolldelta, scrolltime } */
118+ .metaConf = {{ TFT_FRAMEWDT , TFT_FRAMEWDT , 2 , WA_LEFT }, 140 , true, MAX_WIDTH , SCROLLDELAY , 2 , SCROLLTIME * 7 /4 },
119+ .title1Conf = {{ TFT_FRAMEWDT , 19 , 1 , WA_LEFT }, 140 , true, MAX_WIDTH - 6 * 4 , SCROLLDELAY , 1 , SCROLLTIME },
120+ .title2Conf = {{ TFT_FRAMEWDT , 28 , 1 , WA_LEFT }, 140 , true, MAX_WIDTH , SCROLLDELAY , 1 , SCROLLTIME },
121+ .playlistConf = {{ TFT_FRAMEWDT , 30 , 1 , WA_LEFT }, 140 , true, MAX_WIDTH , SCROLLDELAY /5 , 1 , SCROLLTIME },
122+ .weatherConf = {{ TFT_FRAMEWDT , 64 - 9 , 1 , WA_LEFT }, 140 , true, MAX_WIDTH - 6 * 4 , 0 , 1 , SCROLLTIME },
123+ /* BACKGROUNDS {{ left, top, fontsize, align }, width, height, outlined } */
124+ .metaBGConf = { },
125+ .metaBGConfInv = {{ 0 , 0 , 0 , WA_LEFT }, DSP_WIDTH , 17 , false },
126+ .volbarConf = {{ 0 , 64 - 1 , 0 , WA_LEFT }, DSP_WIDTH , 1 , false },
127+ .playlBGConf = {{ 0 , 26 , 0 , WA_LEFT }, DSP_WIDTH , 12 , false },
128+ .bufferbarConf = { }, // unused
129+ /* WIDGETS { left, top, fontsize, align } */
130+ .bitrateConf = { 0 , 19 , 1 , WA_RIGHT },
131+ .voltxtConf = { }, // unused
132+ .batteryConf = { 0 , 64 - 9 , 1 , WA_RIGHT },
133+ .iptxtConf = { TFT_FRAMEWDT , 64 - 9 , 1 , WA_LEFT },
134+ .rssiConf = { 0 , 64 - 9 , 1 , WA_RIGHT },
135+ .numConf = { 0 , 28 + FONTSHIFT , 0 , WA_CENTER },
136+ //.clockConf = { TFT_FRAMEWDT, 38+FONTSHIFT, 0, WA_CENTER },
137+ .clockConf = { TFT_FRAMEWDT , 38 + FONTSHIFT , 0 , WA_CENTER },
138+ .vuConf = { TFT_FRAMEWDT , 38 , 1 , WA_LEFT },
139+ /* CODEC BADGE {{ left, top, fontsize, align }, dimension} - if empty, bitrateConf will be used instead */
140+ .fullbitrateConf = { }, // unused
141+ /* BANDS { onebandwidth, onebandheight, bandsHspace, bandsVspace, numofbands } */
142+ .bandsConf = { 7 , MAX_WIDTH - (TFT_FRAMEWDT * 2 ), 1 , 1 , 10 },
143+ /* MOVES { left, top, width (-1 keeps Conf position) */
144+ .clockMove = { }, // clock disappears when VU is on
145+ .weatherMove = { 0 , 0 , -1 },
146+ .weatherMoveVU = { 0 , 0 , -1 },
147+ .rotateVU = true,
148+ .shareWeatherIP = true, // IP and weather share the bottom row (both at top 55)
149+ .shareBattRSSI = true, // RSSI and battery share the same row (both at top 55)
114150 },
115151};
116152
0 commit comments