functionconstructor
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | addresses | 7-bit address(es), e.g. "0x42" or "0x3E, 0x62" - hexadecimal or decimal, at most 4 (Modelica has no hexadecimal literals, hence a string) | |
| String | scriptPath | Path of the .py script describing the behaviour of the peripheral (on_write / on_read / outputs / lines) | |
| String | pythonHome | Embedded Python distribution (Resources/PythonRuntime) - used to start CPython if no other component has done it yet | |
| String | instanceName | Component name, prefixed to the script's print() output |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| I2cDevice | dev |