mirror of
https://github.com/eclipse/upm.git
synced 2025-09-17 23:54:51 +03:00
rpr220: Initial implementation
The module implements the RPR220 IR Reflective Sensor. It was tested with the Grove IR Reflective Sensor. It includes 2 examples: rpr220.cxx, demonstrating the simple use case of querying the current status. rpr220-intr.cxx demonstrates the use of this class to register an Interrupt Service Routine (ISR) to count transitions, which might be more appropriate for some use cases, such as measuring RPM's. 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
06b48d8e07
commit
ae7b2ad04f
5
src/rpr220/CMakeLists.txt
Normal file
5
src/rpr220/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
set (libname "rpr220")
|
||||
set (libdescription "upm rpr220 grove IR reflective sensor")
|
||||
set (module_src ${libname}.cxx)
|
||||
set (module_h ${libname}.h)
|
||||
upm_module_init()
|
Reference in New Issue
Block a user