28 const uint8_t ain_channel;
33 bool range_pin_is_vcc;
38 static const bool DEFAULT_RANGE_PIN_IS_VCC;
46 Uts_us016 (
const uint8_t init_ain_channel);
Uts_general()
Constructor for a generic ultrasonic sensor driver.
Definition Uts_general.cpp:8
Uts_us016(const uint8_t init_ain_channel)
Creates a new Uts_us016 object.
Definition Uts_us016.cpp:10
uint16_t read_dist_mm()
Reads the distance between this ultrasonic sensor and the obstacle in front of it.
Definition Uts_us016.cpp:22
void set_range_pin_voltage_level(const bool is_vcc=DEFAULT_RANGE_PIN_IS_VCC)
Sets whether the Range pin on this ultrasonic sensor is connected to VCC or GND.
Definition Uts_us016.cpp:18