# \#rp2040

**URL:** https://forums.swift.org/tag/rp2040/945.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [RP2xxxPIO: writing PIO programs inline in Swift](https://forums.swift.org/t/rp2xxxpio-writing-pio-programs-inline-in-swift/90125)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Larralde](https://forums.swift.org/u/Gonzalo_Larralde)\
**Replies:** 0\
**Last updated:** [October 17, 2026, 5:23am UTC](https://forums.swift.org/t/rp2xxxpio-writing-pio-programs-inline-in-swift/90125 "2026-10-17T05:23:36Z")

</div>

Hi everyone! I’d like to share RP2xxxPIO, a Swift DSL for writing PIO programs directly inside your Embedded Swift firmware. PIO is programmable I/O hardware on Raspberry Pi’s RP2040 and RP2350 microcontrollers. Think …

---

## [Embedded Swift running on the Raspberry Pi Pico](https://forums.swift.org/t/embedded-swift-running-on-the-raspberry-pi-pico/69001)

<div class="topic-metadata">

**Author:** [@ole](https://forums.swift.org/u/ole)\
**Replies:** 36\
**Last updated:** [January 9, 2025, 12:27am UTC](https://forums.swift.org/t/embedded-swift-running-on-the-raspberry-pi-pico/69001 "2025-01-09T00:27:34Z")

</div>

@nikolai.ruhe and I managed to get Embedded Swift code running on the Raspberry Pi Pico microcontroller (RP2040 MCU, Cortex-M0+, ARMv6-M), using a current nightly Swift toolchain. If you have a Pico, you can try this ou…

---

## [Example Pico-W code works on SuperCon badge](https://forums.swift.org/t/example-pico-w-code-works-on-supercon-badge/75769)

<div class="topic-metadata">

**Author:** [@carlynorama](https://forums.swift.org/u/carlynorama)\
**Replies:** 7\
**Last updated:** [November 11, 2024, 7:13pm UTC](https://forums.swift.org/t/example-pico-w-code-works-on-supercon-badge/75769 "2024-11-11T19:13:39Z")

</div>

I don't know if anyone else is at SuperCon this year, but FWIW, I got the pico-w-blink-sdk code from the example repo working on the badge. Going to try for I2C, but I suspect I'll need this same hack (thanks @navan )…

---

## [Bringing LVGL to Embedded Swift](https://forums.swift.org/t/bringing-lvgl-to-embedded-swift/73847)

<div class="topic-metadata">

**Author:** [@navan](https://forums.swift.org/u/navan)\
**Replies:** 10\
**Last updated:** [August 21, 2024, 4:50am UTC](https://forums.swift.org/t/bringing-lvgl-to-embedded-swift/73847 "2024-08-21T04:50:43Z")

</div>

Link to demo on YouTube The demo is running the following code: @main struct Main { static func main() { //var device: Device = Device() stdio\_init\_all() System\_Init() LCD\_Init(D2U\_L…

---

## [RP2040MMIO: A hardware access layer for the RP2040](https://forums.swift.org/t/rp2040mmio-a-hardware-access-layer-for-the-rp2040/69513)

<div class="topic-metadata">

**Author:** [@nikolai.ruhe](https://forums.swift.org/u/nikolai.ruhe)\
**Replies:** 11\
**Last updated:** [March 7, 2024, 8:42am UTC](https://forums.swift.org/t/rp2040mmio-a-hardware-access-layer-for-the-rp2040/69513 "2024-03-07T08:42:52Z")

</div>

Accompanying Ole's great work on getting a pure Swift environment up and running on the Raspberry Pi Pico I've been working on implementing a hardware access layer for the RP2040. Here are the first results: RP2040MMIO. …

---

## [Embedded Swift on the Raspberry Pi Pico/RP2040 without the Pico SDK](https://forums.swift.org/t/embedded-swift-on-the-raspberry-pi-pico-rp2040-without-the-pico-sdk/69338)

<div class="topic-metadata">

**Author:** [@ole](https://forums.swift.org/u/ole)\
**Replies:** 10\
**Last updated:** [January 15, 2024, 7:26pm UTC](https://forums.swift.org/t/embedded-swift-on-the-raspberry-pi-pico-rp2040-without-the-pico-sdk/69338 "2024-01-15T19:26:13Z")

</div>

This is sort of a follow-up on Embedded Swift running on the Raspberry Pi Pico, but with a different take. I managed to create a very small Embedded Swift "toolchain" for building pure Swift executables for the Raspberr…
