Skip to content

Instantly share code, notes, and snippets.

@thekitchenscientist
Created August 20, 2015 19:29
Show Gist options
  • Save thekitchenscientist/2ae155126ade8bc95896 to your computer and use it in GitHub Desktop.
Save thekitchenscientist/2ae155126ade8bc95896 to your computer and use it in GitHub Desktop.
Send a note to an EV3 brick from Linux
play_tone = '\x0F\x00\x00\x00\x80\x00\x00\x94\x01\x81\x02\x82\xE8\x03\x82\xE8\x03'
# send commands to EV3 via bluetooth
with open('/dev/rfcomm0', 'w', 0) as bt:
bt.write(play_tone)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment