|Top Previous Next|
Gets the constant used to select transmission of the LSB first.
The constant used to select transmission of the LSB first.
Standard SPI always sends the most-significant bit (MSB) of each byte first. In order to provide compatibility with other types of serial interfaces, the SPI bus can be configured to send the least-significant bit (LSB) first.
This constant is a single bit that must be combined with values for other configuration parameters before assigning it to the config property.
// Set up for 3-wire interface
Cell.SPI.config = Cell.SPI.mode0 | Cell.SPI.LSBfirst | Cell.SPI.noSS;