Skip to content

Instantly share code, notes, and snippets.

@thekitchenscientist
Created August 20, 2015 19:45
Show Gist options
  • Save thekitchenscientist/31a58dbe22f68324820a to your computer and use it in GitHub Desktop.
Save thekitchenscientist/31a58dbe22f68324820a to your computer and use it in GitHub Desktop.
EV3py using python hex conversion rather than library
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