Introduction to Python and Microcontrollers

Class hcsr04

Before each use of the object SR04, add the statement from hcsr04 import SR04 to the top of the Python file.

A copy of this module can be found here: reference_code/hcsr04.py

Adapted from Python_Tutorial.pdf — Chapter 21, Ultrasonic Ranging