Re: Read/Write USB
- Posted by ghaberek (admin) Feb 12, 2018
- 1262 views
jimcbrown said...
irv said...
Can anyone suggest a starting point for reading/writing data from Arduino connected via USB (/dev/ttyUSB0, for example) in Euphoria?
I want to eventually graph the data, and control the Arduino via a control panel written in EuGTK.
You'd be in control of the data on both sides, right? Why wouldn't a simple open()/get()/puts() on /dev/tty/USB0 work?
I don't think it's that simple unfortunately. You'd need to set up the port specs and enable raw throughput: https://stackoverflow.com/a/18134892/2300395
You could also try libserialport. It builds easily enough and the API looks pretty straight-forward to wrap.
-Greg