pyupm_hcsr04 module¶
-
class
pyupm_hcsr04.
HCSR04
(triggerPin, echoPin)[source]¶ Bases:
object
API for the HC-SR04 Ultrasonic Sensor.
ID: hcsr04
Name: Ultrasonic Distance Measuring Sensor
Category: sound
Manufacturer: generic
Connection: gpio
Link:https://www.sparkfun.com/products/13959 This module defines the HC-SR04 interface for libhcsr04
C++ includes: hcsr04.hpp
-
pyupm_hcsr04.
hcsr04_close
(dev)[source]¶ void hcsr04_close(hcsr04_context dev)
HCSR04 Close function
dev: hcsr04_context pointer