https://github.com/coldnew/clj-jssc
jssc(java serial port communication library) wrapper for Clojure
https://github.com/coldnew/clj-jssc
Last synced: 3 months ago
JSON representation
jssc(java serial port communication library) wrapper for Clojure
- Host: GitHub
- URL: https://github.com/coldnew/clj-jssc
- Owner: coldnew
- License: epl-1.0
- Created: 2015-05-29T12:42:38.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-31T17:00:39.000Z (about 11 years ago)
- Last Synced: 2025-01-15T12:14:34.606Z (over 1 year ago)
- Language: Clojure
- Size: 188 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+TITLE: clj-jssc - clojure wrapper for java simple serial connector
# Badge
[[https://travis-ci.org/coldnew/clj-jssc][https://travis-ci.org/coldnew/clj-jssc.svg?branch=master]]
[[https://github.com/coldnew/clj-jssc][clj-jssc]] is [[https://github.com/scream3r/java-simple-serial-connector][java-simple-serial-connector]] wrapper for Clojure. You can view code
document online [[http://coldnew.github.io/clj-jssc/][here]].
* Examples
Following are some examples porting from jssc's example, which can testing under
REPL.
Add following code after you start REPL
#+BEGIN_SRC clojure
(use '[jssc.core])
(use '[jssc.mock :only [mock-serial]])
#+END_SRC
** Getting serial ports names
#+BEGIN_SRC clojure
(list-ports)
#+END_SRC
** Writing data to serial port
#+BEGIN_SRC clojure
#+END_SRC
* License
Copyright © 2015 Yen-Chin, Lee
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.