Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mruby-serialport-uart

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mruby-serialport-uart

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

UART class using serialport gem.

Overview

This is an implementation of the UART class library.
Follows mruby, mruby/c common I/O API guidelines.

This is a wrapper for the serialport gem.
Works well on 32-bit and 64-bit OS.

Installation

$ gem install mruby-serialport-uart

Features

  • Read and write by serialport.
  • Communication parameters can be changed at any time.
  • It has linewise methods and binary methods.

Usage

about RaspberryPi...

# echo server
require "mruby/uart"   # or "mruby/uart/serialport"

uart = UART.new("/dev/serial0")
while true
  s = uart.read(1)
  uart.write s
  print s
end

Other case, see original guidelines.

https://github.com/mruby/microcontroller-peripheral-interface-guide/blob/main/mruby_io_UART_en.md

Licence

BSD 3-Clause License. see LICENSE file.

FAQs

Package last updated on 02 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc