class Sony::Projector::PjTalk
- Sony::Projector::PjTalk
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::InputSelection(Sony::Projector::PjTalk::Input)
- PlaceOS::Driver::Interface::Muteable
- PlaceOS::Driver::Interface::Powerable
Defined in:
sony/projector/pj_talk.crConstant Summary
-
ERROR_CATEGORY =
{1_u8 => :item_error, 2_u8 => :community_error, 16_u8 => :request_error, 32_u8 => :network_error, 240_u8 => :comms_error, 241_u8 => :ram_error}
-
ERRORS =
{item_error: {1_u8 => "Invalid Item", 2_u8 => "Invalid Item Request", 3_u8 => "Invalid Length", 4_u8 => "Invalid Data", 17_u8 => "Short Data", 128_u8 => "Not Applicable Item"}, community_error: {1_u8 => "Different Community"}, request_error: {1_u8 => "Invalid Version", 2_u8 => "Invalid Category", 3_u8 => "Invalid Request", 17_u8 => "Short Header", 18_u8 => "Short Community", 19_u8 => "Short Command"}, network_error: {1_u8 => "Timeout"}, comms_error: {1_u8 => "Timeout", 16_u8 => "Check Sum Error", 32_u8 => "Framing Error", 48_u8 => "Parity Error", 64_u8 => "Over Run Error", 80_u8 => "Other Comm Error", 240_u8 => "Unknown Response"}, ram_error: {16_u8 => "Read Error", 32_u8 => "Write Error"}, unknown: {} of UInt8 => String}
-
METHODS =
[:contrast, :brightness, :color, :hue, :sharpness]
-
PJTALK_HEADER =
Bytes[2, 10]
Class Method Summary
Instance Method Summary
- #brightness(value : UInt8)
- #brightness?
- #color(value : UInt8)
- #color?
- #connected
- #contrast(value : UInt8)
- #contrast?
- #disconnected
- #do_poll
- #hue(value : UInt8)
- #hue?
- #input?
- #lamp_time?
-
#mute(state : Bool = true, index : Int32 | String = 0, layer : MuteLayer = MuteLayer::AudioVideo)
When implementing muteable, these should be the preferred defaults
- #mute?
- #on_load
- #on_update
- #power(state : Bool)
- #power?(priority : Int32 = 0, **options)
- #received(data, task)
- #sharpness(value : UInt8)
- #sharpness?
-
#switch_to(input : Input)
Switches all outputs to the requested input Special case
switch_to 0
should mute all the outputs, if supported
Class Method Detail
Instance Method Detail
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
Description copied from module PlaceOS::Driver::Interface::InputSelection(Sony::Projector::PjTalk::Input)
Switches all outputs to the requested input
Special case switch_to 0
should mute all the outputs, if supported