More correct display simulation
enable/disable works more like the real thing, however not entirely correct. When enabling the display, it takes the current content of the screen buffer instead of the data that has been send to the display controller.
This commit is contained in:
parent
9ab101067a
commit
4f295a6b52
3 changed files with 9 additions and 9 deletions
|
@ -611,8 +611,7 @@ uint8_t *Adafruit_SSD1306::getBuffer(void) {
|
|||
of graphics commands, as best needed by one's own application.
|
||||
*/
|
||||
void Adafruit_SSD1306::display(void) {
|
||||
|
||||
// TODO: Update SDL surface with content of `buffer`
|
||||
dirty_ = true;
|
||||
|
||||
}
|
||||
|
||||
|
@ -723,6 +722,7 @@ void Adafruit_SSD1306::ssd1306_command(uint8_t cmd)
|
|||
break;
|
||||
case SSD1306_DISPLAYON:
|
||||
enabled_ = true;
|
||||
dirty_ = true;
|
||||
break;
|
||||
|
||||
default: break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue