class Clipsal::CBus
- Clipsal::CBus
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Lighting::Level
- PlaceOS::Driver::Interface::Lighting::Scene
Defined in:
clipsal/c_bus.crConstant Summary
-
LEVEL_PERCENTAGE =
255 / 100
-
RAMP_RATES =
{(...2000_u32) => 0_u8, (2000_u32...6000_u32) => 1_u8, (6000_u32...10000_u32) => 2_u8, (10000_u32...15000_u32) => 3_u8, (15000_u32...25000_u32) => 4_u8, (25000_u32...35000_u32) => 5_u8, (35000_u32...50000_u32) => 6_u8, (50000_u32...75000_u32) => 7_u8, (75000_u32...105000_u32) => 8_u8, (105000_u32...150000_u32) => 9_u8, (150000_u32...240000_u32) => 10_u8, (240000_u32...360000_u32) => 11_u8, (360000_u32...510000_u32) => 12_u8, (510000_u32...720000_u32) => 13_u8, (720000_u32...960000_u32) => 14_u8, (960000_u32...) => 15_u8}
Class Method Summary
Instance Method Summary
- #connected
- #disconnected
-
#lighting_level?(area : Area | Nil = nil)
return the current level
- #lighting_scene?(area : Area | Nil = nil)
- #lookup_ramp_rate(fade_time : UInt32) : UInt8
- #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)
- #stop_fading(group : UInt8)
Class Method Detail
Instance Method Detail
Description copied from module PlaceOS::Driver::Interface::Lighting::Level
level between 0.0 and 100.0, fade in milliseconds