Char On/Off Switch
File:TArduinoCharOnOffSwitch.png
Summary
Use this component to control when a character is passed through, based on enable logic and optional state conditions.
Description
The **Char On/Off Switch** component allows character input to be conditionally passed to the output, depending on control logic: - **Enable** pin (boolean) controls whether the character is allowed through. - **Ignore Same** prevents re-sending the same character if it hasn't changed since the last output. - **Initial Enabled** sets the starting state (enabled or disabled) when the component initializes. - **Send On Enable** forces the character to be sent immediately when the component becomes enabled.
This is useful when you need controlled character passing—such as edge-triggered output, filtering repeated signals, or honoring enable/disable state transitions.
Diagram:
Categories
Category Text - Text components category
Properties
- Ignore Same – Set to **True** to suppress output if the input character is the same as the previous one.
- Initial Enabled – Defines whether the switch is enabled at the start.
- Send On Enable – Set to **True** to immediately send the character when the switch is enabled.