Extra Channel setting WIP

This commit is contained in:
Oleksiy
2025-03-04 22:05:51 +02:00
parent d04e7b0dbb
commit 1201d206a0
4 changed files with 29 additions and 18 deletions

View File

@ -266,7 +266,7 @@ void updateScreen() {
u8g2.drawButtonUTF8(xWidth/2, yPos, U8G2_BTN_BW0|U8G2_BTN_HCENTER, xWidth, 0, 2, valueStr.c_str() );
}
for (int i = 1; i <= 6; i++) {
for (int i = 1; i <= (extraChannel ? 7 : 6); i++) {
valueStr = String(i);
if (displayTab == i) {
if (insideTab == true || shiftBtnPushed == true) {
@ -334,7 +334,7 @@ void updateScreen() {
u8g2.drawStr(8, 5, valueStr.c_str() );
u8g2.drawStr(122 - (u8g2.getStrWidth(version.c_str())), 5, version.c_str() );
u8g2.drawHLine(0, 8, 128);
lastMenuItem = 3;
lastMenuItem = 4;
byte width = 112;
for (byte i = 0; i <= lastMenuItem; i++) {
switch(i) {
@ -348,6 +348,9 @@ void updateScreen() {
valueStr = F("REVERSE ENCODER");
break;
case 3:
valueStr = F("7TH CHANNEL");
break;
case 4:
valueStr = F("FACTORY RESET");
break;
};