Skip to content

Instantly share code, notes, and snippets.

@howiemnet
Last active August 29, 2015 14:15
Show Gist options
  • Save howiemnet/4aef79384b86c06e6f7d to your computer and use it in GitHub Desktop.
Save howiemnet/4aef79384b86c06e6f7d to your computer and use it in GitHub Desktop.
Pyserial in Blender on Mac
# Install a full version of Python 3.4. It'll end up
# in /Library/Frameworks. Install PySerial in there too.
# This code can then be run in Blender
import sys
sys.path.append("/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages”)
import serial
s = serial.Serial("/dev/tty_YOURPORTHERE",9600)
my_string = "hello"
hh = my_string.encode('utf-8')
s.write(hh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment