Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

undees/oatmeal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Oatmeal

Oatmeal, "Just enough Iron in your Serial," is a Ruby library that provides a minimal wrapper around the .NET System.IO.Ports API for IronRuby. It mimics the read, write and readline methods from its more full-featured cousin, the serialport Ruby library.

Prerequisites

  1. IronRuby.
  2. Mono or .NET.

Installation

igem install oatmeal, or just put serialport.rb somewhere in your LOAD_PATH.

Usage

Sample code:

require 'serialport'

port = SerialPort.new '/dev/ttyUSB0', 9600, 8, 1, SerialPort::NONE
port.read_timeout = 1000

begin
  port.write 'something'
  puts port.read
ensure
  port.close
end

About

Just barely enough Iron in your Serial

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages