Closed AndreiCo14 closed 5 years ago
Hello,
Actually, this is not a bug, but expected behavior on these types of displays (based on ssd1306 controllers). This happens, because oled display doesn't allow to address single pixel. Each byte in ssd1306 controller represents 8 vertical pixels. So, for example, if it is required to draw horizontal line 4 pixels length at [0,2], library sends four bytes to ssd1306 (0x04,0x04,0x04,0x04). And then you need another horizontal line at [0,4], so the library needs to send another four bytes (0x10,0x10,0x10,0x10), and new bytes completely overwrite previous ones. So, you will see only one line, but not two. Unfortunately there is no way to read old bytes from oled display of this type. So, the only way out for you here is to use double buffering, what is supported by ssd1306 library. Please, refer to examples.
If you have any ideas how to solve your problem, let me know
I understood. Thanks!
Describe the bug See screenshots. Lines is broken.
To Reproduce Steps to reproduce the behavior:
Expected behavior Draw lines.
Screenshots
Please complete the following information:
Additional context