17 lines
302 B
C++
17 lines
302 B
C++
#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);
|
|
}
|
|
}
|
|
}
|