Created
August 20, 2015 19:45
-
-
Save thekitchenscientist/31a58dbe22f68324820a to your computer and use it in GitHub Desktop.
EV3py using python hex conversion rather than library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
EV3 = serial.Serial('/dev/rfcomm0') | |
textstring = "2C000000800000841300820000820000841C018200008232008475692F6D696E6473746F726D732E726766008400" | |
command = textstring.decode("hex") | |
print(command) | |
EV3.write(command) | |
EV3.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment