Updated CV calibration related stuff

This commit is contained in:
2023-08-26 18:58:36 +03:00
parent 5aaa6e694d
commit 95d07893bc
4 changed files with 72 additions and 51 deletions

View File

@ -7,6 +7,7 @@ void updateScreen() {
//String textToShow;
String valueStr;
char valueChar[16];
u8g2.setDrawColor(1);
if (displayScreen == 0) {
//BPM Tab
@ -73,26 +74,6 @@ void updateScreen() {
}
/*
if (masterClockMode == 0) {
if (menuItem == 2 && bpmModulationRange == 0) {
u8g2.drawButtonUTF8(leftOffset + width + 4, 16, U8G2_BTN_BW0|U8G2_BTN_INV, width, 2, 2, "OFF" );
} else if (menuItem != 2 && bpmModulationRange == 0) {
u8g2.drawButtonUTF8(leftOffset + width + 4, 16, U8G2_BTN_BW0, width, 2, 2, "OFF" );
}
String bpmModStr = String(bpmModulationRange * 10);
char bpmModChar[3];
bpmModStr.toCharArray(bpmModChar, 3);
if (menuItem == 3 && bpmModulationRange != 0) {
u8g2.drawButtonUTF8(leftOffset + width + 4, 26, U8G2_BTN_BW0|U8G2_BTN_INV, width, 4, 2, bpmModChar );
} else if (menuItem != 3 && bpmModulationRange != 0) {
u8g2.drawButtonUTF8(leftOffset + width + 4, 26, U8G2_BTN_BW0, width, 4, 2, bpmModChar );
}
}*/
String bpmStr;
if (masterClockMode == 0) {
bpmStr = String(bpm);
@ -339,5 +320,15 @@ void updateScreen() {
}
if (showDone) {
//u8g2.clear();
u8g2.setDrawColor(0);
u8g2.setFontMode(0);
u8g2.drawBox(18,13,93,32);
u8g2.drawBox(18,16,96,30);
u8g2.setDrawColor(1);
u8g2.drawButtonUTF8(64, 32, U8G2_BTN_BW1|U8G2_BTN_HCENTER|U8G2_BTN_SHADOW2|U8G2_BTN_INV, 64, 12, 12, "DONE" );
}
} while ( u8g2.nextPage() );
}