From 528a8f698f67ea3a319d4e271abae2cc5b1cfa91 Mon Sep 17 00:00:00 2001 From: rehius <128579193+rehius@users.noreply.github.com> Date: Fri, 30 Aug 2024 06:21:05 +0000 Subject: [PATCH] Update main.c --- main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 454fdc5..5c657f8 100644 --- a/main.c +++ b/main.c @@ -94,13 +94,20 @@ int main() init_fuses(); // LED & glitch & emmc PIO upload_pio(); + if (is_tiny()) + { + gpio_put(led_pin(), 0); + sleep_us(100); + put_pixel(0); + sleep_us(100); + } // check if this is the very first start if (watchdog_caused_reboot() && boot_try == 0) { halt_with_error(1, 1); } // is chip reset required - bool force_button = detect_by_pull_up(1, 0); + bool force_button = detect_by_pull(1, 0, 1); // start LED put_pixel(PIX_blu); // test pins