Commit Graph
2 Commits
Author SHA1 Message Date
Martin f5dcdfbae8 Add SPI begin transfer and end transfer
The SPISettings object is used to configure the SPI port for your SPI device. All 3 parameters are combined to a single SPISettings object, which is given to SPI.beginTransaction().
Syntax
SPI_BEGIN()   --> SPI.beginTransaction(SPISettings(10000000, MSBFIRST, SPI_MODE0))

Stop using the SPI bus. Normally this is called after de-asserting the chip select, to allow other libraries to use the SPI bus.
Syntax
SPI_END()  --> SPI.endTransaction()
2016-06-01 20:45:24 +02:00
Martin 1a987571af Add SPI begin and end setting.
If you have more then one SPI Device, it is better to end the SPI Transfer.
2016-06-01 20:27:43 +02:00