Is there a reason you didn't just set mode to the right value when initialising SPI?
Did you mean to attach the C code to that post? Just wondering - why did you write it in C rather than JavaScript? I would have thought that would have been much harder to debug.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi Vishnu,
Is there a reason you didn't just set
mode
to the right value when initialising SPI?Did you mean to attach the C code to that post? Just wondering - why did you write it in C rather than JavaScript? I would have thought that would have been much harder to debug.