class Zencontrol::ClassicTPI
- Zencontrol::ClassicTPI
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Lighting::Level
- PlaceOS::Driver::Interface::Lighting::Scene
Defined in:
zencontrol/classic_tpi.crConstant Summary
-
BROADCAST =
Bytes[255, 255, 255, 255, 255, 255]
-
LEVEL_PERCENTAGE =
255 / 100
Class Method Summary
Instance Method Summary
-
#light_level(area : UInt32, level : Float64)
Using direct command
-
#lighting_level?(area : Area | Nil = nil)
return the current level
- #lighting_scene?(area : Area | Nil = nil)
- #on_load
- #on_update
- #received(data, task)
-
#set_lighting_level(level : Float64, area : Area | Nil = nil, fade_time : UInt32 = 1000_u32)
level between 0.0 and 100.0, fade in milliseconds
- #set_lighting_scene(scene : UInt32, area : Area | Nil = nil, fade_time : UInt32 = 1000_u32)
-
#trigger(area : UInt32, scene : UInt32)
Using indirect commands
Class Method Detail
Instance Method Detail
Description copied from module PlaceOS::Driver::Interface::Lighting::Level
return the current level
Description copied from module PlaceOS::Driver::Interface::Lighting::Level
level between 0.0 and 100.0, fade in milliseconds