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>
6 lines
167 B
CMake
6 lines
167 B
CMake
set (libname "gp2y0a")
|
|
set (libdescription "upm gp2y0a family of IR distance detectors")
|
|
set (module_src ${libname}.cxx)
|
|
set (module_h ${libname}.h)
|
|
upm_module_init()
|