class Place::Demo::Switcher

Included Modules

Defined in:

place/demo/switcher.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def inputs : Int32 #

[View source]
def on_update #

[View source]
def outputs : Int32 #

[View source]
def switch(map : Hash(Input, Array(Output)), layer : SwitchLayer | Nil = nil) #

[View source]
def switch_to(input : Int32) #
Description copied from module PlaceOS::Driver::Interface::InputSelection(Int32)

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


[View source]