Binary Mux(Multi channel Switch)
File:TArduinoBinaryMuxMultiChannelSwitch.png
Summary
Selects one of multiple binary input channels to output based on a numeric selector.
Description
The **Binary Mux (Multi-channel Switch)** component lets you dynamically choose one of several binary input feeds to forward to its output. - **Initial Channel**: Determines which input channel is initially selected when the component starts. - **Input Pins**: Defines how many binary input channels are available (default is 2). Use the **select** pin to switch between channels at runtime, routing the selected channel's binary data to the **Out** pin.
This component is especially useful for scenarios like stream multiplexing, selecting between data sources, or conditional routing of binary data.
Diagram:
Categories
- File:TArduinoBinaryCategory.png Category Binary - Components related to binary data processing
Properties
- Initial Channel – Integer value defining which input channel is initially selected.
- Input Pins – Number of binary input channels (default: 2).
Pins
- pin [0]…pin [n-1] – Binary input channels, where *n* is set by **Input Pins**.
- select – Integer input to choose which channel is forwarded to the output.
- Out – The output binary data from the selected channel.