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 |
- License:
- MIT
- Source:
Methods
disable()
Disables the sonar.
enable()
Enables the sonar.