libserialport-cr
Version, currently master branch1 version
- master branchlatestApr 15, 2024
github.com/D-Shwagginz/libserialport-cr
About Crystal C-Bindings for https://sigrok.org/wiki/Libserialport used for communicating with serial ports
Installation
# Add this to your shard.yml
dependencies:
libserialport-cr:
github: D-Shwagginz/libserialport-cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.9.2- License
- MIT
- Author
- D. Shwagginz
Dependencies
This version declares no dependencies.
README
libserialport-cr
A Crystal C-Binding library of libserialport
"libserialport (sometimes abbreviated as "sp") is a minimal, cross-platform shared library written in C that is intended to take care of the OS-specific details when writing software that uses serial ports."
Installation
Linux
- Run
sudo sh ./rsrc/install.sh
- Add
libserialport-crto yourshard.ymldependencies like so:
dependencies:
libserialport-cr:
github: D-Shwagginz/libserialport-cr
Windows
- Follow the instructions at https://github.com/neatorobito/scoop-crystal to add the crystal-preview bucket to scoop
- Install crystal with
scoop install crystal - Run
.\rsrc\install.ps1in powershell - Run in powershell
$env:LIB="${env:LIB};C:\libserialport"
$env:PATH="${env:PATH};C:\libserialport"
OR
Run in cmd
set PATH=%PATH%;C:\libserialport
set LIB=%LIB%;C:\libserialport
Usage
For usage, see the 1 to 1 examples recreated from libserialport.
Contributing
- Fork it (https://github.com/your-github-user/libserialport-cr/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
- D. Shwagginz - creator and 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
- Apr 15, 2024
- Crystal
1.9.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/D-Shwagginz/libserialport-cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1