Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions drivers/kramer/switches/protocol3000.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "placeos-driver/interface/muteable"
require "placeos-driver/interface/switchable"

# Documentation: https://aca.im/driver_docs/Kramer/protocol_3000_2.10_user.pdf

Expand Down Expand Up @@ -51,6 +52,8 @@ class Kramer::Switcher::Protocol3000 < PlaceOS::Driver
get_machine_info
end

include Interface::InputSelection(Input)

def switch_video(input : Int32, output : Array(Int32))
do_send(CMDS["switch_video"], build_switch_data({input => output}))
end
Expand Down