class ScreenTechnics::Connect
- ScreenTechnics::Connect
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Moveable
- PlaceOS::Driver::Interface::Stoppable
Defined in:
screen_technics/connect.crConstant 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
- #connected
- #disconnected
- #down(index : Int32 = 0)
- #down?(index : Int32 = 0)
- #move(position : MoveablePosition, index : Int32 | String = 0)
- #on_load
- #on_update
- #query_state(index : Int32 = 0)
- #received(data, task)
- #stop(index : Int32 | String = 0, emergency : Bool = false)
- #up(index : Int32 = 0)
- #up?(index : Int32 = 0)