Tiny TV Remote Power ON-OFF

Started by jgavlik, July 21, 2022, 03:05:17 PM

Previous topic - Next topic

jgavlik

****
Sr. Member
Posts: 68
Logged
Question....does either the remote control or OLED push button actually turn power OFF; i.e., no battery power to the circuitry...or...does this simply blank the display as in display.off()

-john

lennevia

Administrator
*****
Hero Member
Posts: 437
Logged
Only the power switch on the bottom left disconnects the power completely. The bottom left button and remote just turn off the screen.

I hope that helps!

Thanks,
Réna

jgavlik

****
Sr. Member
Posts: 68
Logged
Réna,

Then based on your comments, can one assume that this is the part of the code that does the Tiny TV ON-OFF without the power switch?

-john

  if (IRresult == powerCode || checkNewButtonPress(TSButtonLowerLeft)) {
    if (!isOff) {
      if (!isStopped()) {
        requestPause();
        delay(10);
        display.endTransfer();
      }
      display.off();
      isOff = true;
    } else {
      display.on();
      if (!isStopped()) {
        display.goTo(0, 0);
        display.startData();
        requestUnPause();
      }
      isOff = false;
    }
  }

lennevia

Administrator
*****
Hero Member
Posts: 437
Logged

jgavlik

****
Sr. Member
Posts: 68
Logged

SMF spam blocked by CleanTalk