UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

LineFinder Class

Module: linefinder
  • 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.
linefinder.jpg

Methods

LineFinder

(
  • pin
)
Number

Line Finder digital sensor constructor

Parameters:

  • pin Number

    Digital 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