figments: renderer: implement brightness/power commands
This commit is contained in:
parent
6edfb2d8e3
commit
236795917a
@ -90,15 +90,21 @@ Renderer::onStart()
|
||||
|
||||
void
|
||||
Renderer::doOn(Args& args, Print& print)
|
||||
{}
|
||||
{
|
||||
m_powerState = 100;
|
||||
}
|
||||
|
||||
void
|
||||
Renderer::doOff(Args& args, Print& print)
|
||||
{}
|
||||
{
|
||||
m_powerState = 0;
|
||||
}
|
||||
|
||||
void
|
||||
Renderer::doBrightness(Args& args, Print& print)
|
||||
{}
|
||||
{
|
||||
m_brightness = atoi(args[1].c_str());
|
||||
}
|
||||
|
||||
const std::vector<Command>&
|
||||
Renderer::commands() const
|
||||
|
Loading…
Reference in New Issue
Block a user