functionconstructor

Inputs

TypeNameDefaultDescription
Stringaddresses7-bit address(es), e.g. "0x42" or "0x3E, 0x62" - hexadecimal or decimal, at most 4 (Modelica has no hexadecimal literals, hence a string)
StringscriptPathPath of the .py script describing the behaviour of the peripheral (on_write / on_read / outputs / lines)
StringpythonHomeEmbedded Python distribution (Resources/PythonRuntime) - used to start CPython if no other component has done it yet
StringinstanceNameComponent name, prefixed to the script's print() output

Outputs

TypeNameDefaultDescription
I2cDevicedev