i2c display garbage
Posted: Tue Jan 01, 2019 4:16 pm
After updating the Arduino-esp32 Core from ?.? to 1.0.0 my i2c SH1106 Oled display doesn't work correct anymore when updating it from a separate task, the output to the display is garbage.
It must have something to do with the task were my screen update is running because if I update the screen in the main loop it works fine again.
With this I create a new task for the display
and in the task sub I'm doing something like this.
What's going wrong? Is this a freertos problem or maybe is the display driver not up to date?
Somebody a hint/tip to get me going.
It must have something to do with the task were my screen update is running because if I update the screen in the main loop it works fine again.
With this I create a new task for the display
Code: Select all
xTaskCreate(screenupdate, "Screenupdate", 10000, NULL, 5, &ScreenUpdateHandle);
Code: Select all
void screenupdate( void * pvParameters ) {
while (1) {
display.clear();
display.drawString(display.getWidth() / 2, 1 , "Hello world");
display.display();
vTaskDelay( 2000 / portTICK_PERIOD_MS);
}
vTaskDelete( NULL );
}
Somebody a hint/tip to get me going.