upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
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 | ( | ) |
Determines whether white has been detected
bool blackDetected | ( | ) |
Determines whether black has been detected