Just saw that SPI can send 4-bit nibbles (http://www.espruino.com/Reference#l_SPI_send4bit) or 8-bit bytes (http://www.espruino.com/Reference#l_SPI_send8bit).
What about 10-bit mode?
I'm afraid not - send4/8bit are actually special-purpose functions that still send 8 bits at a time. They basically replace each bit with a 4 or 8 bit bit pattern.
All the SPI functionality is 8 bit, so if you needed something different you'd have to do it in software yourself.
I see. Thanks for the feedback.
It is quite unusual to have to deal with SPI peripherals that doesn't exchange on 8-bit, however the Character display introduced here http://forum.espruino.com/conversations/313620/#comment13972928 is actually talking with 10-bit data... I'll try to bitbang it.
Ahh - some of them offer that instead of having a Data/Command bit. It looks like software SPI could be tweaked to handle it reasonably easily - it's just not easy to do across the board as most things are expecting bytes.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem