Handle buttons & encoders in View, not Model

This commit is contained in:
2023-03-07 21:58:28 +01:00
parent 38d3d765ad
commit d26339e265
19 changed files with 257 additions and 165 deletions

View File

@ -11,9 +11,9 @@ void MissionSelectElement::initialize() {
void MissionSelectElement::setUp(uint32_t i, TEXTS label) {
uint8_t val;
if (i % 2 == 0) {
val = 0b10000;
val = 0x22;
} else {
val = 0b11000;
val = 0x11;
}
bgColor = touchgfx::Color::getColorFromRGB(val, val, val);
bg.setColor(bgColor);