blockButtonSource
Source of a button state: constant state, time table, or connector wired from the diagram - Boolean companion of Internal.Sources.SensorSource (the table holds 0 released / 1 pressed)
Information
Parameterizable source of a button state, the pattern shared by the buttons of the boards: a constant state (pressed), a time table (table, 0 released / 1 pressed, converted to boolean at 0.5), or a connector wired from the diagram (u, shown in this mode only). The state currently driven is y. Real companion: Internal.Sources.SensorSource.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Source | |||
| MicroPythonMCU.Interfaces.InputSource | source | MicroPythonMCU.Interfaces.InputSource.Connector | How the button is driven: connector wired from the diagram, time table, or constant state |
| Boolean | pressed | false | State in constant mode (true = pressed) |
| Real[:,2] | table | [0, 0] | Time table of the button (column 1 = time in s, column 2 = 0 released / 1 pressed) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanInput | u | State from the diagram (true = pressed) | |
| Modelica.Blocks.Interfaces.BooleanOutput | y | State currently driven (true = pressed) |