#include "lab.h"
#include "esp_log.h"
void app_main(void) {
    i2c_master_bus_handle_t b=bus_init();
    for(int a=0x08; a<=0x77; a++) {
        esp_err_t e=i2c_master_probe(b,a,50);
        if(e==ESP_OK)ESP_LOGI("scan","found 0x%02x",a);
        else if(e!=ESP_ERR_NOT_FOUND)ESP_LOGW("scan","0x%02x: %s",a,esp_err_to_name(e));
    }
    ESP_LOGI("scan","done");
}
