Runnable Examples Gallery (examples/ — 18 Complete Apps)
All 18 official SDK example programs are 100% MicroPython-compatible, tested in CI across pylotos-sim, and ready to copy directly onto any PylotOS board under /apps/ (or /apps/services/ for background daemons).
| # | Example Script | Subsystem / Phase Covered | Recommended --board |
|---|---|---|---|
| 1 | smart_thermostat.py | Adaptive 8-display UI (State, Gauge, Sparkline, Slider) | m5stack_dial |
| 2 | hmi_themes_and_alerts.py | Phase 3A: ThemeManager, NotificationManager, RLE fonts & 20 icons | m5stack_core2 |
| 3 | pubsub_service_monitor.py | Phase 3B: OS EventBus PubSub, services, sys_ota & heap monitor | m5stack_cardputer_adv |
| 4 | background_env_service.py | Phase 3B: Declarative /apps/services/ SERVICE_MANIFEST daemon + UI | m5stack_atoms3 |
| 5 | app_config_and_policy_demo.py | Phase 2A/3B: 3-layer app_config, policy (ALLOW/ASK/DENY) & VFS quota | m5stack_core2 |
| 6 | ota_and_coredump_diagnostics.py | Phase 1/2A: Asymmetric Recovery-OTA (asym-v1) & 0x13000 ELF CoreDump | m5stack_cardputer_adv |
| 7 | power_sleep_and_ulp_monitor.py | Phase 2B/4B: esp_pm Tickless Light Sleep, backlight & ULP RTC RAM | m5stack_stickc_plus2 |
| 8 | lora_mesh_messenger.py | Phase 4W-1: hal.rf SX1262 LoRa, EU868 1% duty-cycle & MIC replay guard | lilygo_t_deck |
| 9 | subghz_cc1101_and_overlays.py | Phase 4W-2: Hardware overlays (Cap LoRa-1262) & CC1101 Sub-GHz | lilygo_t_embed |
| 10 | espnow_swarm_radar.py | Phase 4W-1: hal.espnow P2P zero-copy swarm telemetry & RSSI Sparkline | m5stack_nanoc6 |
| 11 | c6_wifi6_twt_and_802154.py | Phase 2B/4W-2: ESP32-C6 Wi-Fi 6 iTWT, NimBLE Coded PHY & IEEE 802.15.4 | waveshare_esp32c6_lcd_147 |
| 12 | nfc_badge_scanner.py | Phase 4W-1/2: hal.nfc (WS1850S/PN532) UID scan + NDEF decoder | m5stack_dial |
| 13 | ir_universal_remote.py | Phase 4W-1/2: ESP-IDF RMT v2 38 kHz NEC remote + fixed-point hal.gnss | m5stack_cardputer_adv |
| 14 | audio_synth_and_industrial.py | Phase 4B/4C: Core 0 DMA I2S PCM synthesizer, ULP & CAN/TWAI loopback | m5stack_cores3 |
| 15 | mqtt_home_assistant_dashboard.py | Phase 4C: Zero-dep async MQTT 3.1.1 + Home Assistant Auto-Discovery | m5stack_dial |
| 16 | modbus_plc_and_can_gateway.py | Phase 4C: Industrial Modbus RTU (CRC-16) & CAN 2.0B / TWAI gateway | m5stack_core2 |
| 17 | ethernet_failover_and_usb_ncm.py | Phase 4E: hal.net W5500 Ethernet, ESP32-S3 USB-NCM, failover & Bridge filter | m5stack_cores3 |
| 18 | rs485_modbus_and_dmx512.py | Phase 4E: Hardware DE/RE hal.rs485 Modbus RTU, DMX512 break & filtered hal.can OBD-II | m5stack_core2 |
Browse full source code with 1-click copy buttons on the Interactive Examples Page!