Closed XIVN1987 closed 1 year ago
spi = spidev.SpiDev(bus=0, device=0)
TypeError: 'device' is an invalid keyword argument for this function
By looking at __init__, I think it only accepts bus and client as arguments. device is an argument for the open method.
__init__
bus
client
device
open
spi = spidev.SpiDev(bus=0, device=0)
TypeError: 'device' is an invalid keyword argument for this function