Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
rehius authored Aug 30, 2024
1 parent d7f667b commit 528a8f6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 528a8f6

Please sign in to comment.