Best practice to command u8g2.sendBuffer() #1825
Replies: 2 comments 8 replies
-
Nice work, looks cool. If flicker is an issue, then maybe the display itself is the root cause for the flicker. OLED displays do refresh with a fixed frame rate. For the SSD1309 sections 8.3 and 10.16 of the SSD1309 datasheet describe how this frame rate is derived and influenced: We can use the 0xd5 command to change the frame rate itself:
Unfortunately the mentioned timing table for A[7:4] is not listed in the datasheet, but you could still try different values and check whether it works better with your cam. You can change the internal configuration of the display with the u8g2 sendF command (https://github.com/olikraus/u8g2/wiki/u8g2reference#sendf).
The highest possible frame rate would be generated with
This value may not work at all and even if it works, it might influence brightness, so maybe test
and decrese the highest 4 bit (=Oscillator Frequency) of the argument step by step:
You must use |
Beta Was this translation helpful? Give feedback.
-
I assume the frame rate of the display will not be faster than 100Hz or so. So it will always be difficult to use 1/1000 shutter speed. Sounds like a unsolvable problem. |
Beta Was this translation helpful? Give feedback.
-
I appreciate for extreme efforts to provide u8g2. Using the contribution, I am developing DIY rally computer.
2.4" 128 x 64 I2C SSD1309 displays various information such as distance and directions. The number of items is 20.
I would like to ask the forum what is the best practice timing in the code to command u8g2.sendBuffer.
For example, there are items which obtain sensor information and figure out the value to show. Current code is commanding everytime when the value is decided. But it is also possible to command once in the end of loop. In fact, video shooting the display looks different flicker. My nature of this question is to shoot beautiful video without or less flicker by action cam. So I am believing so far that I should optimize the code.
Beta Was this translation helpful? Give feedback.
All reactions