I believe Espruino is smart enough that if you re-assign the pin states it'll disable it automatically on nRF52?
It sounds like a pretty nasty hack to be swapping between hardware/software SPI all the time though. I guess you could look at modifying the SPIFLASH code so that if a hardware SPI device was specified it'd use that?
I think that would be worth investigating as I am not convinced that my current implementation is very robust. I assume the Bangle uses SW SPI as its the same NRF5x jshardware.c implementation. Is there any reason why you do not use HW SPI with DMA?
© Espruino, powered by microcosm.
Report a problem