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.

GroveLineFinder Class

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

Methods

GroveLineFinder

(
  • pin
)
Number

Grove 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