class ScreenTechnics::Connect

Included Modules

Defined in:

screen_technics/connect.cr

Constant Summary

CMD_LOOKUP = {30 => :up, 33 => :down, 1 => :status, 36 => :stop}
COMMANDS = {up: 30, down: 33, status: 1, stop: 36}
STATUS = {0 => :moving_top, 1 => :moving_bottom, 2 => :moving_preset_1, 3 => :moving_preset_2, 4 => :moving_top, 5 => :moving_bottom, 6 => :at_top, 7 => :at_bottom, 8 => :at_preset_1, 9 => :at_preset_2, 10 => :stopped, 11 => :error, 13 => :error_timeout, 14 => :error_current, 15 => :error_rattle, 16 => :at_bottom}

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 down(index : Int32 = 0) #

[View source]
def down?(index : Int32 = 0) #

[View source]
def move(position : MoveablePosition, index : Int32 | String = 0) #

[View source]
def on_load #

[View source]
def on_update #

[View source]
def query_state(index : Int32 = 0) #

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

[View source]
def stop(index : Int32 | String = 0, emergency : Bool = false) #

[View source]
def up(index : Int32 = 0) #

[View source]
def up?(index : Int32 = 0) #

[View source]