class Lumens::DC193

Included Modules

Defined in:

lumens/dc193.cr

Constant 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

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def auto_focus(name : String = "auto_focus") #

[View source]
def connected #

[View source]
def disconnected #

[View source]
def freeze(state : Bool) #

[View source]
def frozen? #

[View source]
def lamp(state : Bool, head_led : Bool = false) #

[View source]
def lamp? #

[View source]
def max_zoom? #

[View source]
def on_load #

[View source]
def picture_mode(state : String) #

[View source]
def picture_mode? #

[View source]
def power(state : Bool) #

[View source]
def power? #

[View source]
def query_status #

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

[View source]
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


[View source]
def zoom?(priority : Int32 = 0) #

[View source]
def zoom_to(position : Float64, auto_focus : Bool = true, index : Int32 | String = 0) #
Description copied from module PlaceOS::Driver::Interface::Zoomable

This a discrete level on most cameras


[View source]