GRiSP Erlang Runtime Library
Clone or download
aytchell and eproxus Fixed data decoding for PmodMAXSONAR driver
The pattern for matching the data returned by the pmod is
wrong. According to the reference manual (https://reference.digilentinc.com/_media/reference/pmod/pmodmaxsonar/pmodmaxsonar_rm.pdf) there is only one 'R'-character in front of the sent distance.

I tested this fix during a GRiSP tutorial session on 06.12.2018:
 - old behavior was that 'undefined' was returned
 - new behavior is that reasonable distances (in inch) are returned
Latest commit 373f764 Dec 13, 2018

README.md

grisp

GRiSP Erlang Runtime Library

Concepts

Slot
A physical slot where a component can be connected. E.g. SPI1 where a Pmod can be connected.
Pmod
TODO
SPI
TODO
GPIO
TODO
I2C
TODO
Dallas 1-Wire
TODO
LED Position
Integer representing one of the two LEDs available on the GRiSP. E.g. 1 for the first LED.
JTAG
TODO

Testing

To test it in the emulator run rebar3 as test shell