packageExamples
Demonstration circuits and verification scenarios (see requirements.md, section "Vérification")
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Contents
| Name | Description |
|---|---|
| Verification scenario no. 1: the default demo script blinks GP0 (external LED) and the on-board LED at 1 Hz | |
| Digital pins: outputs, read-back, wake-up on input change, time cost of the accesses (gpioOpTime) | |
| Analog inputs (machine.ADC) | |
| PWM outputs (machine.PWM) | |
| Interrupts and timers: machine.Pin.irq() and machine.Timer | |
| Program execution: sleep() compression, uncaught exception, module import | |
| MicroPython-style flash file system: boot.py, main.py, files written by the program | |
| Educational display with a logical link (machine.Display) | |
| Serial link: the microcontroller and external serial devices - suffix Py: device whose behaviour is described by a Python script | |
| I2C bus: the microcontroller as master and slave peripherals described by a Python script | |
| Weighing: force, load cell body, gauge bridge, HX711 chain, read by the microcontroller | |
| Several microcontrollers in one model: isolated programs, GPIO, UART and I2C links between boards, one file system each | |
| Radio link between microcontrollers: transparent radio modems, buffers, modulations | |
| Logic analyser: decoding the lines of a circuit into a text file (and a VCD file for PulseView) | |
| Raspberry Pi Pico board (RPi_Pico): USB or battery supply, power-on, internal sensing | |
| Examples with the micro:bit v2 board: LED matrix, buttons, edge pins |