task_light_sensor.c
/******************************************************************************
 * Used for debugging prints the OPT3001 Manufacturer
 ******************************************************************************/
Used for debugging prints the OPT3001 Manufacturer
Used for debugging prints the OPT3001 Manufacturer
void print_manufacturer_id(){
    xSemaphoreTake(Sem_Console, portMAX_DELAY);
    printf("\n\r");
    char manufacturer_id[20];
    sprintf(manufacturer_id, "%04x",i2c_read_16(I2C_OPT3001_ADDRESS, I2C_OPT3001_MANUFACTURER_ID));
    printf("MANUFACTURER_ID: \n\r");
    printf(manufacturer_id);
    printf("\n\r");
    printf("\n\r");
    xSemaphoreGive(Sem_Console);
}
void print_manufacturer_id ( ) { xSemaphoreTake ( Sem_Console , portMAX_DELAY ) ; printf ( " \n \r " ) ; char manufacturer_id [ 20 ] ; sprintf ( manufacturer_id , " " , i2c_read_16 ( I2C_OPT3001_ADDRESS , I2C_OPT3001_MANUFACTURER_ID ) ) ; printf ( " \n \r " ) ; printf ( manufacturer_id ) ; printf ( " \n \r " ) ; printf ( " \n \r " ) ; xSemaphoreGive ( Sem_Console ) ; }
Used for debugging prints the OPT3001 Manufacturer
Used for debugging prints the OPT3001 Manufacturer