Sequences can be different length now
This commit is contained in:
@ -302,26 +302,11 @@ void updateScreen() {
|
||||
valueStr = valueStr + String(pattern - 7);
|
||||
}
|
||||
u8g2.drawButtonUTF8(64, 5, U8G2_BTN_BW1|U8G2_BTN_HCENTER, 128, 0, 2, valueStr.c_str() );
|
||||
for (byte i = 0; i < 8; i++) {
|
||||
if (patternToEdit[i]) {
|
||||
u8g2.drawUTF8(19 + i*12, 24, "q");
|
||||
} else {
|
||||
u8g2.drawUTF8(19 + i*12, 24, "p");
|
||||
}
|
||||
}
|
||||
for (byte i = 8; i < 16; i++) {
|
||||
if (patternToEdit[i]) {
|
||||
u8g2.drawUTF8(19 + (i-8)*12, 40, "q");
|
||||
} else {
|
||||
u8g2.drawUTF8(19 + (i-8)*12, 40, "p");
|
||||
}
|
||||
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"));
|
||||
}
|
||||
if (!isRecording) {
|
||||
if (stepNumSelected < 8 ) {
|
||||
u8g2.drawFrame(16 + stepNumSelected * 12, 16, 11, 11);
|
||||
} else {
|
||||
u8g2.drawFrame(16 + (stepNumSelected-8) * 12, 32, 11, 11);
|
||||
}
|
||||
u8g2.drawFrame(16 + (stepNumSelected % 8)*12, 10 + ((stepNumSelected / 8) * 11), 11, 11); //cursor
|
||||
}
|
||||
|
||||
if (isRecording) {
|
||||
|
||||
Reference in New Issue
Block a user