GroveLineFinder Class
- ID: grovelinefinder
- Name: Line Finder
- Category: color
- Manufacturer: seeed
- Connection: gpio
- Kit: robok
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.
Item Index
Methods
GroveLineFinder
(
Number
-
pin
Grove 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