gp2y0a: renamed from gp2y0a21yk to indicate support for the gp2y0a family
Additionally, add some error checking in the constructor, and determine the ADC resolution and use that in the voltage calculation rather than a hardcoded 1024.0. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Zion Orent <zorent@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
committed by
Mihai Tudor Panu
parent
828d3b928e
commit
77be6adf6d
9
src/gp2y0a/pyupm_gp2y0a.i
Normal file
9
src/gp2y0a/pyupm_gp2y0a.i
Normal file
@@ -0,0 +1,9 @@
|
||||
%module pyupm_gp2y0a
|
||||
%include "../upm.i"
|
||||
|
||||
%feature("autodoc", "3");
|
||||
|
||||
%include "gp2y0a.h"
|
||||
%{
|
||||
#include "gp2y0a.h"
|
||||
%}
|
||||
Reference in New Issue
Block a user