touch buttons set LED programs, added another ribbon LED program
also added PRNG
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user