Last active
August 29, 2015 14:15
-
-
Save howiemnet/4aef79384b86c06e6f7d to your computer and use it in GitHub Desktop.
Pyserial in Blender on Mac
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
# 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