hello_double_tap: use pico_bootsel_via_double_reset from SDK

This commit is contained in:
Luke Wren
2021-02-16 13:53:27 +00:00
committed by Graham Sanderson
parent cad9225899
commit 6cc888c255
5 changed files with 16 additions and 55 deletions

View File

@@ -6,10 +6,14 @@
#include "pico/stdlib.h"
// This is a regular old LED blinking example, however it is linked with double_tap_usb_boot
// so pressing reset quickly twice, will reset into USB bootloader
// This is a regular old LED blinking example, however it is linked with the
// `pico_bootsel_via_double_reset` library, so resetting the board twice
// quickly will enter the USB bootloader. This is useful for boards which have
// a reset button but no BOOTSEL, as long as you remember to always link the
// `pico_bootsel_via_double_reset` library!
int main() {
const uint LED_PIN = 21;
const uint LED_PIN = PICO_DEFAULT_LED_PIN;
gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT);
while (true) {