Fixed and uploaded to GitHub.
Let me know how you get on, then I’ll raise a PR to merge into the mainline. You’ll have to re-upload the arduino code each reboot and may not have many GPIOs remaining due to the SPI flash pins being in use. The blink sketch works.