Class: Sonar

Sonar

Class representing a sonar.

Constructor

new Sonar(triggerPin, echoPin)

Parameters:
Name Type Description
triggerPin Pin The pin used to trigger the sonar
echoPin Pin The pin used to check the echo
Author:
  • Loris Tissino (http://loris.tissino.it)
License:
  • MIT
Source:

Methods

disable()

Disables the sonar.
Source:

enable()

Enables the sonar.
Source: