serialports
Version, currently master branch1 version
- master branchlatestOct 20, 2017
github.com/aurimasniekis/serialports
Crystal libserialport binding library
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
serialports:
github: aurimasniekis/serialports
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.23.1- License
- MIT
- Author
- Aurimas Niekis
Dependencies
This version declares no dependencies.
README
SerialPorts
LibSerialPort binding
Installation
Add this to your application's shard.yml:
dependencies:
serialports:
github: aurimasniekis/serialports
Usage
require "serialports"
port = SerialPorts::Port.new "/dev/cu.usbmodem1423"
pp port.metadata
port.open
pp port.configuration
port.config.baudrate = 115200
port.config.save
pp port.configuration
io = port.io
while true
result = io.gets
puts result unless result.nil?
while port.input_waiting < 1
sleep 1
end
end
Development
TODO: Write development instructions here
Contributing
- Fork it ( https://github.com/aurimasniekis/serialport/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- aurimasniekis Aurimas Niekis - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Oct 20, 2017
- Crystal
0.23.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/aurimasniekis/serialports
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1