mirror of
https://github.com/eclipse/upm.git
synced 2025-06-11 07:40:23 +03:00

This module implements support for the DFRobot Analog ORP (Oxidation/Reduction Potential) Meter. It requires 5.0 volts, but the more accurate the voltage specified (to the constructor), the more accurate the meter (paraphrased from the wiki). Signed-off-by: Jon Trulson <jtrulson@ics.com>
14 lines
275 B
OpenEdge ABL
14 lines
275 B
OpenEdge ABL
%module jsupm_dfrorp
|
|
%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 "dfrorp.hpp"
|
|
%{
|
|
#include "dfrorp.hpp"
|
|
%}
|