Module serial

← Back to All Modules





Description

Module for interfacing with serial ports. This module uses wjwwood/serial C++ library as its backend.


Example

import serial
 
arduino = serial("/dev/ttyACM0")
 
if !arduino.is_open()
    exit(arduino.get_error())
endif
 
arduino.write("Hello")
 
data = arduino.readln()
writeln(data)
 
arduino.close()


Constants


Functions


Classes