LineFinder Class
- ID: linefinder
- Name: Infrared (IR) Based Line Finder
- Other Names: Grove Line Finder, DFRobot Line Tracking sensor
- Category: color
- Manufacturer: seeed dfrobot
- Connection: gpio
- Kit: robok
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.
Item Index
Methods
Methods
LineFinder
(
Number
-
pin
Line Finder digital sensor constructor
Parameters:
-
pin
NumberDigital pin to use
Returns:
Number:
whiteDetected
()
Boolean
Determines whether white has been detected
Returns:
Boolean:
True if white is detected
blackDetected
()
Boolean
Determines whether black has been detected
Returns:
Boolean:
True if black is detected