//OLED_printf(0,0,font_6x8,"VL53L0X_GetDeviceInfo:\n");
//OLED_printf(0,1,font_6x8,"Device Name : %s\n", vl53l0x_dev_info.Name);
//OLED_printf(0,2,font_6x8,"Device Type : %s\n", vl53l0x_dev_info.Type);
//OLED_printf(0,3,font_6x8,"Device ID : %s\n", vl53l0x_dev_info.ProductId);
//OLED_printf(0,4,font_6x8,"ProductRevisionMajor : %d\n", vl53l0x_dev_info.ProductRevisionMajor);
//OLED_printf(0,5,font_6x8,"ProductRevisionMinor : %d\n", vl53l0x_dev_info.ProductRevisionMinor);
if ((vl53l0x_dev_info.ProductRevisionMajor != 1) && (vl53l0x_dev_info.ProductRevisionMinor != 1)){
OLED_printf(0,0,font_6x8,"Error expected cut 1.1 but found cut %d.%d\n",vl53l0x_dev_info.ProductRevisionMajor, vl53l0x_dev_info.ProductRevisionMinor);
Status = VL53L0X_ERROR_NOT_SUPPORTED;
print_pal_error(Status);
return Status;
}
Status = vl53l0x_measure_init(pMyDevice);
vl53l0x_status = Status;
if(Status != VL53L0X_ERROR_NONE){
print_pal_error(Status);
return Status;
} |