figments: renderer: implement brightness/power commands
This commit is contained in:
parent
6edfb2d8e3
commit
236795917a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user