106 value=(float)centimeters * 0.01;
109 value_=(1.071 *
static_cast<float>(centimeters) + 3.103) / 100.0;
void _I2C_Sonar_start_read_cb(uint8_t result)
volatile uint32_t millis(void)
#define MB1242_DEFAULT_REGISTER
void cb_finished_read(uint8_t result)
#define MB1242_UPDATE_WAIT_MILLIS
void _I2C_Sonar_finished_read_cb(uint8_t result)
uint32_t last_callback_ms_
int8_t write(uint8_t addr, uint8_t reg, uint8_t data, void(*callback)(uint8_t), bool blocking=false)
#define MB1242_PING_COMMAND
int8_t read(uint8_t addr, uint8_t reg, uint8_t num_bytes, uint8_t *data, void(*callback)(uint8_t)=nullptr, bool blocking=false)
void cb_start_read(uint8_t result)
#define MB1242_DEFAULT_ADDRESS