Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import spidev
- import time
- spi = spidev.SpiDev(0,0)
- spi.open(0,0)
- msg= 0xAA
- spi.max_speed_hz=115200
- while 1:
- spi.writebytes([0x4,0x06])
- y=spi.readbytes(1)
- print(y)
- time.sleep(0.5)
Advertisement
Add Comment
Please, Sign In to add comment