Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range(1,6):
- if(y[i]!=1):
- ser.write(cliffled.get(i))
- ser.write(bytearray([137, 255, 206, 128, 0]))
- if random.random()> 0.5:
- ser.write(bytearray([137, 0, 100, 0, 1]))
- ser.write(bytearray([137, 0, 100, 128, 0]))
- else:
- ser.write(bytearray([137, 0, 100, 255, 255]))
- ser.write(bytearray([137, 0, 100, 128, 0]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement