class Hitachi::Projector::CpTwSeriesBasic

Included Modules

Defined in:

hitachi/projector/cp_tw_series_basic.cr

Constant Summary

Commands = {power_on: "BA D2 01 00 00 60 01 00", power_off: "2A D3 01 00 00 60 00 00", hdmi: "0E D2 01 00 00 20 03 00", hdmi2: "6E D6 01 00 00 20 0D 00", mute_video: "6E F1 01 00 A0 20 01 00", unmute_video: "FE F0 01 00 A0 20 00 00", mute_audio: "D6 D2 01 00 02 20 01 00", unmute_audio: "46 D3 01 00 02 20 00 00", lamp_hours_reset: "58 DC 06 00 30 70 00 00", filter_hours_reset: "98 C6 06 00 40 70 00 00", "power?": "19 D3 02 00 00 60 00 00", "input?": "CD D2 02 00 00 20 00 00", "error?": "D9 D8 02 00 20 60 00 00", "freeze?": "B0 D2 02 00 02 30 00 00", "audio_mute?": "75 D3 02 00 02 20 00 00", "video_mute?": "CD F0 02 00 A0 20 00 00", "lamp?": "C2 FF 02 00 90 10 00 00", "filter?": "C2 F0 02 00 A0 10 00 00"}

Note: commands have spaces in between each byte for readability

GetRequests = [:"power?", :"input?", :"error?", :"freeze?", :"audio_mute?", :"video_mute?", :"lamp?", :"filter?"] of ::Symbol

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def audio_mute?(**options) #

[View source]
def connected #

[View source]
def disconnected #

[View source]
def error?(**options) #

[View source]
def filter?(**options) #

[View source]
def filter_hours_reset #

[View source]
def freeze?(**options) #

[View source]
def input?(**options) #

[View source]
def lamp?(**options) #

[View source]
def lamp_hours_reset #

[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 mute_audio(state : Bool = true) #

[View source]
def mute_video(state : Bool = true) #

[View source]
def on_load #

[View source]
def poll_1 #

[View source]
def poll_2 #

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

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

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

[View source]
def switch_to(input : Input) #

[View source]
def video_mute?(**options) #

[View source]