serial 1.0.1

Serial communication module

Linux Linux ARMv7 macOS Windows



Description

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

Installation
Use Dima to install or update this module:
$ dima install serial


Usage 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()


Changelog
See Changelog


Module Info
Author: @faruq (Muhammad Faruq Nuruddinsyah)
URL: https://dinfio.org/
Documentation: Module Reference
Published on: 29 May 2021