Tiny TV Remote Power ON-OFF

jgavlik

  • Sr. Member
  • ****
    • Posts: 55
    • View Profile
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: 383
    • View Profile
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: 55
    • View Profile
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: 383
    • View Profile


 

SMF spam blocked by CleanTalk