Added screen rotation setting
This commit is contained in:
@ -232,7 +232,6 @@ void updateScreen() {
|
||||
} else {
|
||||
u8g2.drawButtonUTF8(96, 26, U8G2_BTN_BW0|U8G2_BTN_HCENTER, 56, 0, 0, valueChar );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Tabs
|
||||
@ -316,6 +315,24 @@ void updateScreen() {
|
||||
//Settings Screen
|
||||
else if (displayScreen == 2) {
|
||||
u8g2.drawButtonUTF8(64, 5, U8G2_BTN_BW1|U8G2_BTN_HCENTER, 128, 0, 2, "SETTINGS" );
|
||||
lastMenuItem = 2;
|
||||
byte menuItemWidth = 112;
|
||||
if (menuItem == 0) {
|
||||
u8g2.drawButtonUTF8(8, 18, U8G2_BTN_BW0|U8G2_BTN_INV, menuItemWidth, 2, 2, "CALIBRATE CV INS" );
|
||||
} else {
|
||||
u8g2.drawButtonUTF8(8, 18, U8G2_BTN_BW0, menuItemWidth, 2, 2, "CALIBRATE CV INS" );
|
||||
}
|
||||
if (menuItem == 1) {
|
||||
u8g2.drawButtonUTF8(8, 32, U8G2_BTN_BW0|U8G2_BTN_INV, menuItemWidth, 2, 2, "ROTATE SCREEN" );
|
||||
} else {
|
||||
u8g2.drawButtonUTF8(8, 32, U8G2_BTN_BW0, menuItemWidth, 2, 2, "ROTATE SCREEN" );
|
||||
}
|
||||
if (menuItem == 2) {
|
||||
u8g2.drawButtonUTF8(8, 46, U8G2_BTN_BW0|U8G2_BTN_INV, menuItemWidth, 2, 2, "FACTORY RESET" );
|
||||
} else {
|
||||
u8g2.drawButtonUTF8(8, 46, U8G2_BTN_BW0, menuItemWidth, 2, 2, "FACTORY RESET" );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} while ( u8g2.nextPage() );
|
||||
|
||||
Reference in New Issue
Block a user