Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Adafruit_BBIO.SPI import SPI
- spi = SPI(0, 0)
- print(spi.xfer2([32, 11, 110, 22, 220]))
- spi.close()
- '''
- Traceback (most recent call last):
- File "/var/lib/cloud9/adc.py", line 8, in <module>
- spi = SPI(0,0) #/dev/spidev1.0
- IOError: [Errno 2] No such file or directory
- '''
Advertisement
Add Comment
Please, Sign In to add comment