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

TypeNameDefaultDescription
MCUmcudefault scriptPath = Resources/Scripts/MCU/demo.py
Modelica.Electrical.Analog.Basic.Groundground
Modelica.Electrical.Analog.Basic.Resistorr0limits the current of led0 (GP0)
MicroPythonMCU.Peripherals.LEDled0GP0: blinks together with the on-board LED