# swiftlang/swift-embedded-examples

A collection of example projects using Embedded Swift

Repository: https://github.com/swiftlang/swift-embedded-examples
Canonical: https://ross.abutalabs.com/products/swift-embedded-examples
Homepage: https://docs.swift.org/embedded/documentation/embedded
Language: Swift
License: Apache-2.0
License Family: permissive
Topics: embedded, esp32, example, nrf, stm32, swift, raspberrypi
Last push: 2026-08-22T00:06:37+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 35, longevity 71
- inputs: {"age_days": 1006, "days_push": 12, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1045, forks 87 (observed 2026-08-28T04:03:21.521948+00:00)

## What it is
A collection of official example projects demonstrating Embedded Swift, a compilation mode of Swift for baremetal and embedded development on microcontrollers. Examples cover boards like ESP32, nRF52840, STM32, and Raspberry Pi with SDKs such as ESP-IDF, Zephyr, and Pico SDK.

## Use cases
- learn how to write Swift for microcontrollers
- blink an LED on ESP32 with Swift
- build firmware for Raspberry Pi Pico in Swift
- run Swift on baremetal ARM or RISC-V hardware
- explore Embedded Swift with Zephyr or NuttX RTOS
- control LED strips and UART from Swift on embedded boards

## When to choose
- you want to learn Embedded Swift through working, documented examples
- you develop in Swift and want to target microcontrollers like ESP32, nRF, or Raspberry Pi
- you need reference projects for ESP-IDF, Zephyr, Pico SDK, or NuttX integration

## When to avoid
- you need a production-ready firmware framework rather than examples
- your target hardware or RTOS is not covered by the included examples
- you are not using the Swift toolchain

## Facets
- artifact type: learning-resource
- maturity: active
- function: embedded, developer-tools, sdk
- domain: embedded-systems, hardware, tutorials, programming-languages
- platform: embedded, iot, cross-platform
- tags: embedded-swift, microcontrollers, esp32, stm32, nrf, raspberry-pi, example-projects, baremetal, firmware, zephyr, esp-idf, nuttx

## Member repositories
- swiftlang/swift-embedded-examples (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:21.521948+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:02:08.952106+00:00, confidence not recorded.
  - readme: https://github.com/swiftlang/swift-embedded-examples (fetched 2026-08-28T04:03:21.521948+00:00, sha 3e842b482f13)
  - homepage: https://docs.swift.org/embedded/documentation/embedded (fetched 2026-08-29T13:03:05.465560+00:00, sha f7da6313b8a8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
