Ahh - yes, you're right. This looks like it's actually to do with the nRF52's SPI hardware!
It seems that data is output MSB first, as you'd expect. However after outputting all data the state of the output line returns to the state that was in the top bit! So I guess either we'd have to move to 0b01010101 or ob01100110 (and then double the number of bytes).
At this point I think it's probably best to just go with your method and drive it with 24 bits of data despite what the datasheet says. If it's not going to cause any trouble and it works reliably :)
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.
Ahh - yes, you're right. This looks like it's actually to do with the nRF52's SPI hardware!
It seems that data is output MSB first, as you'd expect. However after outputting all data the state of the output line returns to the state that was in the top bit! So I guess either we'd have to move to
0b01010101
orob01100110
(and then double the number of bytes).At this point I think it's probably best to just go with your method and drive it with 24 bits of data despite what the datasheet says. If it's not going to cause any trouble and it works reliably :)