Hi Thanks for your reply,
First I used a library from Thingpulse
https://github.com/ThingPulse/esp8266-oled-ssd1306
After that I changed to U8x8lib that's from the same maker as U8g2lib.h.
Also tested the Graphicstest.ino from the U8g2lib, same problem.
All the above lib's working fine until you put some display stuff in a separate task.
Tested the stack use with your suggestion, however the simple test program as below the stack isn't a problem, stack use will never change and is something like 70bytes.
Running the simple test below will always show
.A.A.A.A etc.
So for some reason there's always a dot inserted. I'm in proces now to find out with a jtag debugger why this happens, but easier said then done.
Code: Select all
#include <U8x8lib.h>
U8X8_SH1106_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE);
TaskHandle_t ScreenUpdateHandle;
void setup(void)
{
Serial.begin(115200);
u8x8.begin();
u8x8.setPowerSave(0);
u8x8.setFont(u8x8_font_chroma48medium8_r);
xTaskCreate(screenupdate, "Screenupdate", 10500, NULL, 5, &ScreenUpdateHandle);
}
void loop(void)
{
vTaskDelay( 2000 / portTICK_PERIOD_MS);
}
void screenupdate( void * pvParameters ) {
int loopcounter = 0;
while (1) {
u8x8.drawString(1, 1, "A");
vTaskDelay( 2000 / portTICK_PERIOD_MS);
}
vTaskDelete( NULL );
}