upm
0.2.0
Sensor/Actuator repository for libmraa (v0.6.1)
|
C++ API for the Grove Line Finder sensor. More...
UPM module for the Grove Line Finder sensor. It outputs a digital signal indicating whether it is detecting black on a white background, or white on a black background.
Public Member Functions | |
GroveLineFinder (int pin) | |
~GroveLineFinder () | |
bool | whiteDetected () |
bool | blackDetected () |
GroveLineFinder | ( | int | pin | ) |
Grove Line Finder digital sensor constructor
pin | digital pin to use |
~GroveLineFinder | ( | ) |
GroveLineFinder Destructor
bool whiteDetected | ( | ) |
Determine whether white has been detected
bool blackDetected | ( | ) |
Determine whether black has been detected