Created
August 20, 2015 19:29
-
-
Save thekitchenscientist/2ae155126ade8bc95896 to your computer and use it in GitHub Desktop.
Send a note to an EV3 brick from Linux
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
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