Add some debugging lines for now

This commit is contained in:
Reed Nightingale 2020-02-09 17:09:46 -08:00
parent 5e30551bf2
commit d9667d6756

View File

@ -1,6 +1,7 @@
#include "menu_main.h"
#include <avr/pgmspace.h>
#include <Arduino.h>
#include "button.h"
#include "menu_utils.h"
@ -91,6 +92,10 @@ MenuReturn_e runMainMenu(const ButtonPress_e tuner_button,
if(mainMenuSelecting){
uint8_t menu_index = mainMenuSelectedItemRaw/MENU_KNOB_COUNTS_PER_ITEM;
//TODO: activate button
Serial.print(F("Select button "));
Serial.print(menu_index);
Serial.print(F(":"));
Serial.println(mainMenuButtons[menu_index].text);
}
else{
initSelector(&mainMenuSelectedItemRaw,
@ -127,9 +132,12 @@ MenuReturn_e runMainMenu(const ButtonPress_e tuner_button,
Button button;
if(findPressedButton(mainMenuButtons,MAIN_MENU_NUM_BUTTONS,&button,touch_point)){
//TODO: activate button
Serial.print(F("Touch button "));
Serial.println(button.text);
}
else{
//Touch detected, but not on our buttons, so ignore
Serial.println(F("Touch not on button"));
}
}//touch_button