You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to inherit spidev library to a custom class. I'm using python2.
This is the code that I'm using:
self.spi = spidev.SpiDev()
self.spi.open(bus,CS)
self.spi.mode = 0
self.spi.lsbfirst = False
self.spi.max_speed_hz = speed
And its tell me that global name 'spi' is not defined. Any suggestions?
The text was updated successfully, but these errors were encountered:
I'm trying to inherit spidev library to a custom class. I'm using python2.
This is the code that I'm using:
self.spi = spidev.SpiDev()
self.spi.open(bus,CS)
self.spi.mode = 0
self.spi.lsbfirst = False
self.spi.max_speed_hz = speed
And its tell me that global name 'spi' is not defined. Any suggestions?
The text was updated successfully, but these errors were encountered: