Skip to content

Instantly share code, notes, and snippets.

@abcsds
Created February 10, 2015 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abcsds/730dc51c705674dbab5e to your computer and use it in GitHub Desktop.
Save abcsds/730dc51c705674dbab5e to your computer and use it in GitHub Desktop.
Octave conection to serial port
fid = fopen("/dev/ttyUSB0", "r+")
fwrite(fid, your_data)
out = fread(fid)
@matiasmicheletto
Copy link

fopen returns -1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment