dfrec: Initial implementation

This module implements support for the DFRobot EC (Electrical
Conductivity) meter.  It relies on the use of the DS18B20 UPM C module
for temperature gathering.

It has a pretty complicated calibration procedure which is somewhat
documented on the DFRobot wiki.  Functions have been added to support
changing the various coefficients as desired.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson
2016-09-13 11:31:33 -06:00
committed by Noel Eck
parent 6d437c8007
commit 6a6a572069
19 changed files with 1366 additions and 0 deletions

13
src/dfrec/jsupm_dfrec.i Normal file
View File

@@ -0,0 +1,13 @@
%module jsupm_dfrec
%include "../upm.i"
%include "std_string.i"
%include "cpointer.i"
/* Send "int *" and "float *" to JavaScript as intp and floatp */
%pointer_functions(int, intp);
%pointer_functions(float, floatp);
%include "dfrec.hpp"
%{
#include "dfrec.hpp"
%}