class Zencontrol::ClassicTPI

Included Modules

Defined in:

zencontrol/classic_tpi.cr

Constant Summary

BROADCAST = Bytes[255, 255, 255, 255, 255, 255]
LEVEL_PERCENTAGE = 255 / 100

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def light_level(area : UInt32, level : Float64) #

Using direct command


[View source]
def lighting_level?(area : Area | Nil = nil) #
Description copied from module PlaceOS::Driver::Interface::Lighting::Level

return the current level


[View source]
def lighting_scene?(area : Area | Nil = nil) #

[View source]
def on_load #

[View source]
def on_update #

[View source]
def received(data, task) #

[View source]
def set_lighting_level(level : Float64, area : Area | Nil = nil, fade_time : UInt32 = 1000_u32) #
Description copied from module PlaceOS::Driver::Interface::Lighting::Level

level between 0.0 and 100.0, fade in milliseconds


[View source]
def set_lighting_scene(scene : UInt32, area : Area | Nil = nil, fade_time : UInt32 = 1000_u32) #

[View source]
def trigger(area : UInt32, scene : UInt32) #

Using indirect commands


[View source]