mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2025-01-28 03:16:35 -05:00
Add some debugging lines for now
This commit is contained in:
parent
5e30551bf2
commit
d9667d6756
@ -1,6 +1,7 @@
|
|||||||
#include "menu_main.h"
|
#include "menu_main.h"
|
||||||
|
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
|
#include <Arduino.h>
|
||||||
|
|
||||||
#include "button.h"
|
#include "button.h"
|
||||||
#include "menu_utils.h"
|
#include "menu_utils.h"
|
||||||
@ -91,6 +92,10 @@ MenuReturn_e runMainMenu(const ButtonPress_e tuner_button,
|
|||||||
if(mainMenuSelecting){
|
if(mainMenuSelecting){
|
||||||
uint8_t menu_index = mainMenuSelectedItemRaw/MENU_KNOB_COUNTS_PER_ITEM;
|
uint8_t menu_index = mainMenuSelectedItemRaw/MENU_KNOB_COUNTS_PER_ITEM;
|
||||||
//TODO: activate button
|
//TODO: activate button
|
||||||
|
Serial.print(F("Select button "));
|
||||||
|
Serial.print(menu_index);
|
||||||
|
Serial.print(F(":"));
|
||||||
|
Serial.println(mainMenuButtons[menu_index].text);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
initSelector(&mainMenuSelectedItemRaw,
|
initSelector(&mainMenuSelectedItemRaw,
|
||||||
@ -127,9 +132,12 @@ MenuReturn_e runMainMenu(const ButtonPress_e tuner_button,
|
|||||||
Button button;
|
Button button;
|
||||||
if(findPressedButton(mainMenuButtons,MAIN_MENU_NUM_BUTTONS,&button,touch_point)){
|
if(findPressedButton(mainMenuButtons,MAIN_MENU_NUM_BUTTONS,&button,touch_point)){
|
||||||
//TODO: activate button
|
//TODO: activate button
|
||||||
|
Serial.print(F("Touch button "));
|
||||||
|
Serial.println(button.text);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
//Touch detected, but not on our buttons, so ignore
|
//Touch detected, but not on our buttons, so ignore
|
||||||
|
Serial.println(F("Touch not on button"));
|
||||||
}
|
}
|
||||||
}//touch_button
|
}//touch_button
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user