pyupm_linefinder module

class pyupm_linefinder.LineFinder(pin)[source]

Bases: object

API for the Line Finder Sensor.

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.

C++ includes: linefinder.hpp

blackDetected()[source]

bool blackDetected()

Determines whether black has been detected

True if black is detected

whiteDetected()[source]

bool whiteDetected()

Determines whether white has been detected

True if white is detected