@hackage serialport0.5.2
Cross platform serial port library.
Categories
License
BSD-3-Clause
Maintainer
David Cox <standard.semiconductor@gmail.com>
Links
Versions
Installation
Dependencies (4)
- Win32 >=2.11 && <2.13
- base >=4.12 && <4.16
- bytestring >=0.11 && <0.12
- unix >=2.7 && <2.8 Show all…
Dependents (18)
@hackage/crystalfontz, @hackage/ham, @hackage/NXT, @hackage/tidal-serial, @hackage/HaMinitel, @hackage/tidal, Show all…
Objectives
- Cross platform: at least Linux, Windows and Mac OS.
Tests
Setup
- Arduino Leonardo + Sparkfun FTDI breakout board.
- Connections: TX, RX and GND
Prepare Arduino
- Upload arduino code using Arduino IDE or avrdude
Prepare haskell test program
- Configure cabal to build the tests: cabal configure --enable-tests.
- Build: cabal build
Running the tests
- Run the tests: cabal test --test-options="/dev/ttyACM0 /dev/ttyUSB0"