Initial commit: Pico serial echo with BOOTSEL reboot

This commit is contained in:
Ian Gulliver
2026-04-02 22:15:10 +09:00
commit 3a9dc78a5b
5 changed files with 181 additions and 0 deletions

16
picomap.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include <stdio.h>
#include "pico/stdlib.h"
#include "pico/bootrom.h"
int main() {
stdio_init_all();
while (true) {
int c = getchar_timeout_us(100000);
if (c == 'p') {
printf("p");
} else if (c == 'b') {
reset_usb_boot(0, 0);
}
}
}