doceme / py-spidev

MIT License
461 stars 203 forks source link

SpiDev_open cannot handle keyword argument ‘device’ correctly #52

Closed XIVN1987 closed 1 year ago

XIVN1987 commented 7 years ago

spi = spidev.SpiDev(bus=0, device=0)

TypeError: 'device' is an invalid keyword argument for this function

alexpeits commented 7 years ago

By looking at __init__, I think it only accepts bus and client as arguments. device is an argument for the open method.