i am working on sparkfun MAX10305 with sparkfun esp32. Below is the pseudo code which i am running in a task
Code: Select all
void taskname(void *pvParameter){
check the part id and revision id // i2c writes and reads
setup max10305 // 6 i2c writes
// loop
while(1){
vTaskDelay(1000/ portTICK_PERIOD_MS);
1. start I2C burst read and store the value // for red
2. start I2C burst read and store the value // for IR
3. start I2C burst read and store the value // for green
}
}
Do i need to specify more delay in the loop. at present this is the only task running
Code: Select all
- IDLE (CPU 0)
Tasks currently running:
CPU 0: taskname
CPU 1: IDLE