OpenFFBoard
OpenFFBoard copied to clipboard
SPIButton: RP2040 mode
Add an SPI_BtnMode for the RP2040.
~~Opened in draft as I can't figure out why the OpenFFBoard still boots into TM-mode if RP2040 mode was saved to flash. #160 has been opened if this isn't the place for spitting ideas.~~
Edit: Turns out that restoreFlash() runs setConfig() which in turn runs initSPI(), only for the SPI_Buttons constructor to change some of the SPI port values and re-run initSPI(). 7cbcb08 fixes this behavior, published separately in #164.