libserialport-cr
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-cr
to yourshard.yml
dependencies 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.ps1
in 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
Repository
libserialport-cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- 8 months ago
- April 13, 2024
License
MIT License
Links
Synced at
Mon, 23 Dec 2024 03:56:22 GMT
Languages