Martinmehrdad

Untitled

Oct 14th, 2020
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. from Adafruit_BBIO.SPI import SPI
  2.  
  3. spi = SPI(0, 0)
  4.  
  5. print(spi.xfer2([32, 11, 110, 22, 220]))
  6.  
  7. spi.close()
  8. '''
  9. Traceback (most recent call last):
  10. File "/var/lib/cloud9/adc.py", line 8, in <module>
  11. spi = SPI(0,0) #/dev/spidev1.0
  12. IOError: [Errno 2] No such file or directory
  13. '''
Advertisement
Add Comment
Please, Sign In to add comment