Skip to content

Small wrapper package for using Pythons' PySerial package in the Julia language

License

Notifications You must be signed in to change notification settings

hcgraf/PySerial.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PySerial

Small wrapper module for using the great Python PySerial module (http:https://pyserial.sourceforge.net/) from Julia with the help of PyCall (https://github.com/stevengj/PyCall.jl).

Usage

Example usage:

using PySerial

# construct a serial port object
# positional and keyword arguments can be used just like in the python module
ser = Serial("/dev/ttyUSB0", baudrate=19200) 

# read all the waiting characters and output them on the terminal
w = inWaiting(ser)
if w > 0
  s = read(ser,w)
  print(s)
end

# close the serial port
close(ser)

Also have a look at the minimal terminal example in the examples/ folder.

About

Small wrapper package for using Pythons' PySerial package in the Julia language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages