class Philips::DyNetText

Included Modules

Defined in:

philips/dynet_text.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def connected #

[View source]
def disconnected #

[View source]
def get_current_preset(area : UInt16, join : UInt8 = 255_u8) #

[View source]
def get_date #

[View source]
def get_light_level(area : UInt16, join : UInt8 = 255_u8, channel : UInt16 = 1_u16) #

[View source]
def get_time #

[View source]
def light_level(area : UInt16, level : Float64, join : UInt8 = 255_u8, fade : UInt32 = 1000_u32, channel : UInt16 = 0_u16) #

[View source]
def lighting(area : UInt16, state : Bool, join : UInt8 = 255_u8, fade : UInt32 = 1000_u32) #

[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 received(data, task) #

[View source]
def send_custom(data : String) #

[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 stop_fading(area : UInt16, join : UInt8 = 255_u8, channel : UInt16 = 0_u16) #

[View source]
def trigger(area : UInt16, scene : UInt16, join : UInt8 = 255_u8, fade : UInt32 = 1000_u32) #

[View source]