datacute / Tiny4kOLED

Library for an ATTiny85 to use an SSD1306 powered, double buffered, 128x32 pixel OLED, over I2C
MIT License
264 stars 39 forks source link

-Not issue- is possible with this library power off the screen? #40

Closed patomoi closed 2 years ago

patomoi commented 2 years ago

hi i am in a fork of a proyect and i was thinking of add power saving feature.

i have see this code in the internet.

display.ssd1306_command(SSD1306_DISPLAYOFF); // To switch display off

display.ssd1306_command(SSD1306_DISPLAYON); // To switch display back on

my question : is possible to use this code in this library, if not there are any code like this?

datacute commented 2 years ago

In this library, those commands are sent by the methods oled.off(); and oled.on();