echoplayer: implement basic power-on / power-off logic

Use cpu_power_on as a GPIO to keep the main power supply
enabled when running from battery.

Change-Id: Ic79283a0cc640585a0297e11f9dcc2264ec9af26
This commit is contained in:
Aidan MacDonald 2026-01-12 16:07:55 +00:00 committed by Solomon Peachy
parent e29780fe09
commit 671320b5d1
4 changed files with 24 additions and 1 deletions

View file

@ -119,6 +119,10 @@ void main(void)
demo_page -= 1;
break;
case BUTTON_X:
power_off();
break;
default:
break;
}