modelBasicBlink
Verification scenario no. 1: the default demo script blinks GP0 (external LED) and the on-board LED at 1 Hz
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Expected result: the plot of mcu.GP0.v shows a periodic 0 V / ≈3 V square wave with a 2 s period (1 s on, 1 s off); the on-board LED (icon of mcu) blinks in phase with led0 (the demo.py script drives both together).
Components
| Type | Name | Default | Description |
|---|---|---|---|
| MCU | mcu | default scriptPath = Resources/Scripts/MCU/demo.py | |
| Modelica.Electrical.Analog.Basic.Ground | ground | ||
| Modelica.Electrical.Analog.Basic.Resistor | r0 | limits the current of led0 (GP0) | |
| MicroPythonMCU.Peripherals.LED | led0 | GP0: blinks together with the on-board LED |