I'm not 100% sure if anyone uses it already... Are you using hardware or software SPI? I'm not sure about hardware, but software SPI definitely should work with 9 bits.
I just looked at the code and it seems like there is a bug that means that individual numbers being sent to spi.send are cropped to 8 bits, so that could be causing you grief? spi.write seems fine though.
If you need to use spi.send, for now, just use spi.send([data], chipSelectPin)
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.
I'm not 100% sure if anyone uses it already... Are you using hardware or software SPI? I'm not sure about hardware, but software SPI definitely should work with 9 bits.
I just looked at the code and it seems like there is a bug that means that individual numbers being sent to
spi.send
are cropped to 8 bits, so that could be causing you grief?spi.write
seems fine though.If you need to use spi.send, for now, just use
spi.send([data], chipSelectPin)