Optiboot / optiboot

Small and Fast Bootloader for Arduino and other Atmel AVR chips
Other
1.09k stars 401 forks source link

Add support for holding a button on boot to wait for programmer. #352

Open xC0000005 opened 2 years ago

xC0000005 commented 2 years ago

Not sure if this would be useful to other people, but at least the PR can be searched for. Trying to upload to a cricut via PIO or arduino, I kept hitting timeouts, so I added a def for a button which, if held down, causes it to wait forever for programming. The cricut has buttons low when on, but both are supported.

If it's useful, I could probably create #ifdef blocks for the other pins/ports.

mcuee commented 1 year ago

This seems to be useful.