serialEvent not working in osx
in
Integration and Hardware
•
1 year ago
using Tom Igoe's serial event processing code:
and some arduino code that works.
I have verified that this works just fine under windows.
I have yet to verify if it works under linux.
It does NOT work in osx.
OSX hack:
run the following python script FIRST before processing sketch:
#!/usr/bin/env python
import serial
from time import sleep
s = serial.Serial(port='/dev/tty.usbmodem411', baudrate=9600)
while (1):
sleep(1)
s.write('\n')
l = s.readline().strip()
print l
This will "prime the pump" of processing so to speak.
Obviously, the serialEvent has NOT been tested in osx.
I will verify later today, if the same situation applies to linux
1