|
@@ -100,6 +100,23 @@ int main(void) {
|
100
|
100
|
lcd_debug_buttons();
|
101
|
101
|
} else if (debug_buttons[BTN_REC] && (!debug_buttons[BTN_CLICK])) {
|
102
|
102
|
// skip splash screen
|
|
103
|
+ } else if ((!debug_buttons[BTN_REC]) && debug_buttons[BTN_CLICK]) {
|
|
104
|
+ // show version info
|
|
105
|
+ lcd_draw_version();
|
|
106
|
+
|
|
107
|
+ // wait until button is released
|
|
108
|
+ uint32_t last = to_ms_since_boot(get_absolute_time());
|
|
109
|
+ bool state = false;
|
|
110
|
+ while (debug_buttons[BTN_CLICK]) {
|
|
111
|
+ buttons_run();
|
|
112
|
+ handle_serial_input();
|
|
113
|
+ uint32_t now = to_ms_since_boot(get_absolute_time());
|
|
114
|
+ if ((now - last) >= 250) {
|
|
115
|
+ state = !state;
|
|
116
|
+ led_set(0, state);
|
|
117
|
+ }
|
|
118
|
+ }
|
|
119
|
+ led_set(0, false);
|
103
|
120
|
} else {
|
104
|
121
|
// show splash for a bit and animate LEDs
|
105
|
122
|
for (uint i = 0; i < LED_COUNT; i++) {
|