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 ScriptSubsystem / Phase CoveredRecommended --board
1smart_thermostat.pyAdaptive 8-display UI (State, Gauge, Sparkline, Slider)m5stack_dial
2hmi_themes_and_alerts.pyPhase 3A: ThemeManager, NotificationManager, RLE fonts & 20 iconsm5stack_core2
3pubsub_service_monitor.pyPhase 3B: OS EventBus PubSub, services, sys_ota & heap monitorm5stack_cardputer_adv
4background_env_service.pyPhase 3B: Declarative /apps/services/ SERVICE_MANIFEST daemon + UIm5stack_atoms3
5app_config_and_policy_demo.pyPhase 2A/3B: 3-layer app_config, policy (ALLOW/ASK/DENY) & VFS quotam5stack_core2
6ota_and_coredump_diagnostics.pyPhase 1/2A: Asymmetric Recovery-OTA (asym-v1) & 0x13000 ELF CoreDumpm5stack_cardputer_adv
7power_sleep_and_ulp_monitor.pyPhase 2B/4B: esp_pm Tickless Light Sleep, backlight & ULP RTC RAMm5stack_stickc_plus2
8lora_mesh_messenger.pyPhase 4W-1: hal.rf SX1262 LoRa, EU868 1% duty-cycle & MIC replay guardlilygo_t_deck
9subghz_cc1101_and_overlays.pyPhase 4W-2: Hardware overlays (Cap LoRa-1262) & CC1101 Sub-GHzlilygo_t_embed
10espnow_swarm_radar.pyPhase 4W-1: hal.espnow P2P zero-copy swarm telemetry & RSSI Sparklinem5stack_nanoc6
11c6_wifi6_twt_and_802154.pyPhase 2B/4W-2: ESP32-C6 Wi-Fi 6 iTWT, NimBLE Coded PHY & IEEE 802.15.4waveshare_esp32c6_lcd_147
12nfc_badge_scanner.pyPhase 4W-1/2: hal.nfc (WS1850S/PN532) UID scan + NDEF decoderm5stack_dial
13ir_universal_remote.pyPhase 4W-1/2: ESP-IDF RMT v2 38 kHz NEC remote + fixed-point hal.gnssm5stack_cardputer_adv
14audio_synth_and_industrial.pyPhase 4B/4C: Core 0 DMA I2S PCM synthesizer, ULP & CAN/TWAI loopbackm5stack_cores3
15mqtt_home_assistant_dashboard.pyPhase 4C: Zero-dep async MQTT 3.1.1 + Home Assistant Auto-Discoverym5stack_dial
16modbus_plc_and_can_gateway.pyPhase 4C: Industrial Modbus RTU (CRC-16) & CAN 2.0B / TWAI gatewaym5stack_core2
17ethernet_failover_and_usb_ncm.pyPhase 4E: hal.net W5500 Ethernet, ESP32-S3 USB-NCM, failover & Bridge filterm5stack_cores3
18rs485_modbus_and_dmx512.pyPhase 4E: Hardware DE/RE hal.rs485 Modbus RTU, DMX512 break & filtered hal.can OBD-IIm5stack_core2

Browse full source code with 1-click copy buttons on the Interactive Examples Page!