upm/src/ds18b20/pyupm_ds18b20.i
Jon Trulson d3b864362d ds18b20: rewrite C++ to wrap C, add FTI, update examples
Previously, the C++ and C versions of this driver were separate.  Now
the C++ implementation wraps the C implementation.

In addition, the C++ init() function has been deprecated.  It
currently does nothing, and examples have been modified to remove it's
calls.  This function will be removed in a separate release.

The examples have been further modified to update all detected devices
and print their respective temperatures, instead of only reporting the
on the first device detected.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
2017-01-18 13:33:44 -07:00

18 lines
324 B
OpenEdge ABL

%module pyupm_ds18b20
%include "../upm.i"
// Include doxygen-generated documentation
%include "pyupm_doxy2swig.i"
%include "carrays.i"
%include "std_string.i"
%feature("autodoc", "3");
%include "ds18b20_defs.h"
%include "ds18b20.hpp"
%{
#include "ds18b20.hpp"
%}
%include "ds18b20.hpp"
%array_class(char, charArray);