TinyCircuits Forum
TinyCircuits Products => TinyTV & Tiny Video Player => Topic started by: jgavlik on July 21, 2022, 03:05:17 PM
-
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
-
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
-
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;
}
}
-
Yes, that's it.
-
Réna,
Thanks, again!
-john