Utility

Here are useful functions for controller maintenance.

firmwareUploadMode()

This function is RP2040 specific. It will let you set up two regular pushbuttons so that when they are held together for a speficied amount of time, you will reboot the RP2040 chip into USB storage device mode. This allows you to quickly update/swap firmware on your controller without having to take it appart to use the BOOTSEL button.

The two buttons used will work like regular pushbuttons as well. You could for instance use you shifters for this function.

Last updated