spidev
is depreciated and will be removed in a future version.
Use device
instead.
Create an spidev object to communicate to the SPI port on a connected arduino.
ar - connected arduino object
cspin - chip select pin for attached spi device.
propname, propvalue - property name/value pair for values to pass to devices.
Currently known properties:
bit rate speed in Mbs
’msbfirst’ or ’lsbfirst’
SPI mode 0 - 3.
dev - created spidev object
The spidev object has the following public properties:
The parent (arduino) for this device
pins used by this object
mode used for created object
Bitrate set for object
Bitorder set for object
Pin used for chipselect
See also: arduino, readWrite.
Package: arduino