Multilevel menus working with key repeat

This commit is contained in:
2025-05-16 17:11:59 -05:00
parent da0dd55b20
commit d4a402428b
9 changed files with 386 additions and 118 deletions

View File

@@ -26,11 +26,11 @@ uint8_t keyval;
extern uint8_t Port_State[];
#if 1
void pro_key(void)
void pro_key(uint32_t pressed)
{
uint32_t tmp_frqx;
switch(KEY_GetPressed())//(key_bits)
switch(pressed)//(key_bits)
{
//TODO: cases need to use the key #defines from keys.c and keys.h
case ON_OFF_KEY: // Begin Primary Key
@@ -75,9 +75,9 @@ void pro_key(void)
break;
case MENU_KEY:
Task = MENU_TASK; // display the menus
break;
// case MENU_KEY:
// Task = MENU_TASK; // display the menus
// break;
case MODE_KEY: // End Primary Key