mirror of
https://github.com/eclipse/upm.git
synced 2025-07-06 03:41:13 +03:00
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:
17
src/dfrec/CMakeLists.txt
Normal file
17
src/dfrec/CMakeLists.txt
Normal file
@ -0,0 +1,17 @@
|
||||
# we need includes from ds18b20
|
||||
include_directories("../ds18b20")
|
||||
|
||||
upm_mixed_module_init (NAME dfrec
|
||||
DESCRIPTION "upm dfrobot analog EC sensor"
|
||||
C_HDR dfrec.h
|
||||
C_SRC dfrec.c
|
||||
CPP_HDR dfrec.hpp
|
||||
CPP_SRC dfrec.cxx
|
||||
FTI_SRC dfrec_fti.c
|
||||
CPP_WRAPS_C
|
||||
REQUIRES upmc-ds18b20 mraa)
|
||||
|
||||
# make sure the C library has the appropriate dependency on the UPM
|
||||
# DS18B20 C library
|
||||
add_dependencies(${libnamec} ds18b20-c)
|
||||
target_link_libraries(${libnamec} ds18b20-c)
|
Reference in New Issue
Block a user