Tweet
Replying to @josecastillo
Power of open source: I was racking my brain, surely someone’s written C code for interfacing with SPI Flash chips like this. Then I remembered: CircuitPython is C! So I borrowed their MIT-licensed code. With minimal changes, I had it working in an hour :) https://github.com/joeycastillo/Sensor-Watch/blob/main/watch-library/shared/driver/spiflash.c
(original)