added length indicator to the sequencer screen
This commit is contained in:
@ -301,7 +301,12 @@ void updateScreen() {
|
||||
valueStr = F("PATTERN B");
|
||||
valueStr = valueStr + String(pattern - 7);
|
||||
}
|
||||
u8g2.drawButtonUTF8(64, 5, U8G2_BTN_BW1|U8G2_BTN_HCENTER, 128, 0, 2, valueStr.c_str() );
|
||||
u8g2.drawUTF8(8, 5, valueStr.c_str() );
|
||||
valueStr = F("L: ");
|
||||
u8g2.drawUTF8(100, 5, valueStr.c_str() );
|
||||
valueStr = String(sequences[patternToEdit].length + 1);
|
||||
u8g2.drawUTF8(110, 5, valueStr.c_str() );
|
||||
u8g2.drawHLine(0, 8, 128);
|
||||
for (byte i = 0; i <= sequences[patternToEdit].length; i++) {
|
||||
u8g2.drawUTF8(19 + (i % 8)*12, 18 + ((i / 8) * 11), (bitRead(sequences[patternToEdit].sequence, i) ? "q" : "p"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user