# SwiftPigpioWrapper - Control GPIO on your Raspberry PI using swift

**URL:** <https://forums.swift.org/t/swiftpigpiowrapper-control-gpio-on-your-raspberry-pi-using-swift/82075>\
**Category:** Community Showcase\
**Tags:** raspberrypi, linux, swift, embedded\
**Created:** [September 11, 2025, 7:00pm UTC](https://forums.swift.org/t/swiftpigpiowrapper-control-gpio-on-your-raspberry-pi-using-swift/82075 "2025-09-11T19:00:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrAma999](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/drama999/32/12679_2.png) [@DrAma999](https://forums.swift.org/u/DrAma999)\
**Post date:** [September 11, 2025, 7:00pm UTC](https://forums.swift.org/t/swiftpigpiowrapper-control-gpio-on-your-raspberry-pi-using-swift/82075/1 "2025-09-11T19:00:52Z")

</div>

Hello,

I have developed a wrapper around the `pigpio` library.

`Pigpio` is a library that enables the control of the Raspberry Pi’s GPIO pins.

Therefore, if you are a Swift programmer seeking to begin utilizing a Raspberry Pi’s GPIO, this wrapper may be of particular interest to you.

[SwiftPigpioWrapper](https://github.com/DrAma999/SwiftPigpio)

---

<div class="post-metadata">

**Author:** ![Diggory](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/diggory/32/4320_2.png) [@Diggory](https://forums.swift.org/u/Diggory)\
**Post date:** [September 12, 2025, 3:38am UTC](https://forums.swift.org/t/swiftpigpiowrapper-control-gpio-on-your-raspberry-pi-using-swift/82075/2 "2025-09-12T03:38:19Z")

</div>

Not to undermine your work, but are you aware of [GitHub - uraimo/SwiftyGPIO: A Swift library for hardware projects on Linux/ARM boards with support for GPIOs/SPI/I2C/PWM/UART/1Wire.](https://github.com/uraimo/SwiftyGPIO) ?

---

<div class="post-metadata">

**Author:** ![DrAma999](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/drama999/32/12679_2.png) [@DrAma999](https://forums.swift.org/u/DrAma999)\
**Post date:** [September 12, 2025, 5:00am UTC](https://forums.swift.org/t/swiftpigpiowrapper-control-gpio-on-your-raspberry-pi-using-swift/82075/4 "2025-09-12T05:00:11Z")

</div>

Ciao, Certainly. I have used the library and enjoyed it, but I have some concerns.

The latest library update is from 2024, and it only addresses minor fixes. It appears to be no longer actively maintained. Additionally, to utilize some GPIO functionalities, such as PWM, you require superuser privileges.

I also believe that a more beginner-friendly library is needed. SwiftGPIO, while useful, now requires root permission, which can be cumbersome to use.

For example, if you install Swift on linux using Swiftly basic instructions, it installs everything in the user environment. As a result, `sudo` does not work because Swift is not found, and you must delve into Linux commands. If you are unfamiliar with Linux, this can be a frustrating experience.

With pipio running in daemon mode, you do not need to use `sudo`, and my library supports this.

My project is a simple wrapper with no complex features. However, I believe it is more suitable for beginners.

---

<div class="post-metadata">

**Author:** ![CmST0us](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/cmst0us/32/31664_2.png) [@CmST0us](https://forums.swift.org/u/CmST0us)\
**Post date:** [September 12, 2025, 10:03am UTC](https://forums.swift.org/t/swiftpigpiowrapper-control-gpio-on-your-raspberry-pi-using-swift/82075/5 "2025-09-12T10:03:22Z")

</div>

I have made the same library

> **[GitHub - CmST0us/PeripheryKit: A Swift library for peripheral I/O (GPIO, LED,...](https://github.com/CmST0us/PeripheryKit)**
>
> A Swift library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux.

It is based on c\_periphery
