ESP32 improve display speed for SH1106 #382
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Same as #380
This PR is SH1106 .
Tested with I2C SH1106 OLED 128x64
ESP32-S3 (revision v0.1)
ESP32-C3 (revision v0.3)
SH1106 needs to specify the coordinates when the Y coordinate changes .
So I made ESP32's maximum transmission length 1/2 of 128 dots , which is 64 bytes .
P.S. It will be also works fine ESP8266 . But I not yet tested .
https://github.com/esp8266/Arduino/blob/01d1c8e46f96d37d3597e6ce296cca37567a7030/libraries/Wire/Wire.h#L33
This is ESP32's define .
https://github.com/espressif/arduino-esp32/blob/0d84018d969309addacbcc3e3782c1fadc95fbc8/libraries/Wire/src/Wire.h#L43