New poly modes, processing improvements

This commit is contained in:
Brian Hrebec 2024-01-30 22:16:15 -06:00
parent c09177c0ee
commit 4211a85562
9 changed files with 258 additions and 162 deletions

View file

@ -5,7 +5,7 @@ uint16_t oldKeys = 0;
uint16_t oldUtil = 0;
bool plotCap = false;
void handleTestMode() {
void handleTestMode(state_t &state) {
uint8_t buttons = buttonState();
if (buttons != oldButtons) {
oldButtons = buttons;
@ -41,6 +41,10 @@ void handleTestMode() {
plotCap = !plotCap;
}
if (buttons == 0x08) {
state.instrument->mode = MODE_NORMAL;
}
if (plotCap) {
for (int i = 0; i < 12; i++) {
Serial.print(">key");