upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
API for the Line Finder Sensor. More...
UPM module for the 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 | |
LineFinder (int pin) | |
~LineFinder () | |
bool | whiteDetected () |
bool | blackDetected () |
LineFinder | ( | int | pin | ) |
Line Finder digital sensor constructor
pin | Digital pin to use |
~LineFinder | ( | ) |
LineFinder destructor
bool whiteDetected | ( | ) |
Determines whether white has been detected
bool blackDetected | ( | ) |
Determines whether black has been detected