figments: renderer: implement brightness/power commands

This commit is contained in:
Torrie Fischer 2023-12-20 09:29:10 +01:00
parent 6edfb2d8e3
commit 236795917a

View File

@ -90,15 +90,21 @@ Renderer::onStart()
void void
Renderer::doOn(Args& args, Print& print) Renderer::doOn(Args& args, Print& print)
{} {
m_powerState = 100;
}
void void
Renderer::doOff(Args& args, Print& print) Renderer::doOff(Args& args, Print& print)
{} {
m_powerState = 0;
}
void void
Renderer::doBrightness(Args& args, Print& print) Renderer::doBrightness(Args& args, Print& print)
{} {
m_brightness = atoi(args[1].c_str());
}
const std::vector<Command>& const std::vector<Command>&
Renderer::commands() const Renderer::commands() const