class Lumens::DC193
- Lumens::DC193
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Powerable
- PlaceOS::Driver::Interface::Zoomable
Defined in:
lumens/dc193.crConstant Summary
-
COMMANDS =
{193_u8 => :lamp, 176_u8 => :power, 183_u8 => :power_staus, 167_u8 => :picture_mode, 163_u8 => :auto_focus, 138_u8 => :max_zoom, 120_u8 => :frozen_status, 96_u8 => :zoom_staus, 81_u8 => :picture_mode_staus, 80_u8 => :lamp_staus, 44_u8 => :freeze, 31_u8 => :zoom_direct_auto_focus, 19_u8 => :zoom_direct, 17_u8 => :zoom, 16_u8 => :zoom_stop}
-
PICTURE_MODES =
{:photo, :test, :greyscale}
Class Method Summary
Instance Method Summary
- #auto_focus(name : String = "auto_focus")
- #connected
- #disconnected
- #freeze(state : Bool)
- #frozen?
- #lamp(state : Bool, head_led : Bool = false)
- #lamp?
- #max_zoom?
- #on_load
- #picture_mode(state : String)
- #picture_mode?
- #power(state : Bool)
- #power?
- #query_status
- #received(data, task)
-
#zoom(direction : ZoomDirection, index : Int32 | String = 1)
As zoom is typically discreet we manually implement the analogue version Simple enough to overwrite this as required
- #zoom?(priority : Int32 = 0)
-
#zoom_to(position : Float64, auto_focus : Bool = true, index : Int32 | String = 0)
This a discrete level on most cameras
Class Method Detail
Instance Method Detail
def zoom(direction : ZoomDirection, index : Int32 | String = 1)
#
Description copied from module PlaceOS::Driver::Interface::Zoomable
As zoom is typically discreet we manually implement the analogue version Simple enough to overwrite this as required
Description copied from module PlaceOS::Driver::Interface::Zoomable
This a discrete level on most cameras