U8G2.begin() takes 2.1s to start - Is this the same for everyone else?
Posted: Thu Jun 11, 2020 6:03 pm
HI All.
I'm using the U8G2 library to run a little SH1106 screen on my STM32L07 variant board.
When I turn on the board, There's a boot screen to let some internals load and some values settle.
However, before the boot logo appears on the screen, there's a very uncomfortable 2.1s delay.
Peppering the code with Serial.println(millis()); shows that the culprit is U8G2.begin();
I've set up hardware I2C1 on PA9 and PA10 and it appears to be working fine.
By setting the U8G2 screen constructor to software I2C, U8G2.begin() completes in a relatively zippy 1.3s (but obviously causes the screen update to slow to a crawl). These both seem like very long times to me, and it seems strange that Hardware I2C would take longer to load than software I2C.
I want to try and figure out if I misconfigured something? Maybe in the configuration of my variant? Does it take similar amounts of time for you guys? Has anyone come up against a problem like this before with slow begin on U8G2 or maybe some other I2c communication?
Many thanks,
I'm using the U8G2 library to run a little SH1106 screen on my STM32L07 variant board.
When I turn on the board, There's a boot screen to let some internals load and some values settle.
However, before the boot logo appears on the screen, there's a very uncomfortable 2.1s delay.
Peppering the code with Serial.println(millis()); shows that the culprit is U8G2.begin();
I've set up hardware I2C1 on PA9 and PA10 and it appears to be working fine.
By setting the U8G2 screen constructor to software I2C, U8G2.begin() completes in a relatively zippy 1.3s (but obviously causes the screen update to slow to a crawl). These both seem like very long times to me, and it seems strange that Hardware I2C would take longer to load than software I2C.
I want to try and figure out if I misconfigured something? Maybe in the configuration of my variant? Does it take similar amounts of time for you guys? Has anyone come up against a problem like this before with slow begin on U8G2 or maybe some other I2c communication?
Many thanks,