aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 2ee8211..ae818a0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -104,8 +104,16 @@ int main()
btn_onOnePress(KEY2, change_fb);
btn_onLongPress(KEY1, change_brightness);
- while (1) {
- }
+ while (1) {
+ int i = 0;
+ while (isPressed(KEY2)) {
+ i++;
+ if (i>10) {
+ asm volatile("j 0x00");
+ }
+ DelayMs(200);
+ }
+ }
}
__INTERRUPT