44. Arduino and Python
>>> import serial
>>> ser = serial.Serial('/dev/tty.usbserial', 9600)
>>> while True:
... print ser.readline()
'1 Hello world!rn'
'2 Hello world!rn'
'3 Hello world!rn'
>>> import serial # if you have not already done so
>>> ser = serial.Serial('/dev/tty.usbserial', 9600)
>>> ser.write('5')
http://playground.arduino.cc/interfacing/python 44
52. https://www.youtube.com/watch?v=9pjpQoZoW6E
EV3 Print3rbot, on ev3dev distribution (http://www.ev3dev.org).
Coded in Python. Code and instructions available on the home
page of the project. Home page:
http://www.ev3dev.org/projects/2015/0... Inspiration:
https://www.youtube.com/watch?v=tez0Y... (David Feller)