class Epson::Projector::EscVp21

Included Modules

Defined in:

epson/projector/esc_vp21.cr

Constant Summary

COMMAND = {power: "PWR", input: "SOURCE", volume: "VOL", av_mute: "MUTE", video_mute: "MSEL", error: "ERR", lamp: "LAMP"}
ERRORS = ["00: no error", "01: fan error", "03: lamp failure at power on", "04: high internal temperature", "06: lamp error", "07: lamp cover door open", "08: cinema filter error", "09: capacitor is disconnected", "0A: auto iris error", "0B: subsystem error", "0C: low air flow error", "0D: air flow sensor error", "0E: ballast power supply error", "0F: shutter error", "10: peltiert cooling error", "11: pump cooling error", "12: static iris error", "13: power supply unit error", "14: exhaust shutter error", "15: obstacle detection error", "16: IF board discernment error"]
RESPONSE = COMMAND.to_h.invert

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 do_poll #

[View source]
def input? #

[View source]
def inspect_error #

[View source]
def mute(state : Bool = true, index : Int32 | String = 0, layer : MuteLayer = MuteLayer::AudioVideo) #
Description copied from module PlaceOS::Driver::Interface::Muteable

When implementing muteable, these should be the preferred defaults


[View source]
def on_load #

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

[View source]
def power?(**options) : Bool #

[View source]
def power_actual : Bool | Nil #

[View source]
def power_stable? : Bool #

[View source]
def power_target? : Bool #

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

[View source]
def switch_to(input : Input) #
Description copied from module PlaceOS::Driver::Interface::InputSelection(Epson::Projector::EscVp21::Input)

Switches all outputs to the requested input Special case switch_to 0 should mute all the outputs, if supported


[View source]
def video_mute? #

[View source]
def volume(vol : Float64 | Int32, **options) #

Volume commands are sent using the inpt command


[View source]
def volume? #

[View source]