touch buttons set LED programs, added another ribbon LED program

also added PRNG
This commit is contained in:
true
2026-05-09 08:42:57 -07:00
parent b2de3abe08
commit 2c151b1bf4
7 changed files with 343 additions and 6 deletions

View File

@@ -29,6 +29,8 @@
#include "ui/btn.h"
#include "ui/temp_ui.h"
#include "misc/tinymt.h"
/*
*@Note
***Only PA0--PA15 and PC16--PC17 support input pull-down.
@@ -166,6 +168,9 @@ int main(void)
// set up user interface
tempui_init();
// set up random
tinymt32_init(&tinymt32_s, 1337);
// configure AWU to provide ~997Hz wakeup interrupt for main program
// TODO: confirm if the counter is reset / preloaded
awu_init();
@@ -175,7 +180,7 @@ int main(void)
// rendering next LED program output frame
if (lp_render) {
lp_render = 0;
lp_ribbon_upward(200, 3, 4);
tempui_lp_runprog();
}
// stay a while