rpi-rgb-led-matrix
rpi-rgb-led-matrix copied to clipboard
Provide a way to power the matrix off temporarily
Hi,
Please could you tell me shat is the proper way to power the matrix temporarily off? I found this code in the RGBMatrix for doing that:
if (updater_) {
updater_->Stop();
updater_->WaitStopped();
}
delete updater_;
// Make sure LEDs are off.
active_->Clear();
if (io_) active_->framebuffer()->DumpToMatrix(io_, 0);
Then, to power the matrix back on I would use:
matrix->StartRefresh();
matrix->SwapOnVSync(&frameCanvas);
Is that correct? If so, then shall I create a pull request to add the function for powering the matrix off?
Thank you!
Is there a particular reason you'd like to do that ?
To stop the CPU usage when the display would otherwise be blank for an extended period of time.