28 const uint8_t ain_channel;
33 bool range_pin_is_vcc;
38 static const bool DEFAULT_RANGE_PIN_IS_VCC;
Uts_general()
Constructor for a generic ultrasonic sensor driver.
Uts_us016(const uint8_t init_ain_channel)
Creates a new Uts_us016 object.
uint16_t read_dist_mm()
Reads the distance between this ultrasonic sensor and the obstacle in front of it.
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.