Swiftpack.co - fizker/swift-gpio as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by fizker.
fizker/swift-gpio 0.2.0
High-level wrappers around SwiftyGPIO
⭐️ 0
🕓 3 days ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/fizker/swift-gpio.git", from: "0.2.0")


High-level wrappers around SwiftyGPIO. The concept is to make the API more object-oriented and more Swifty.


Stars: 0
Last commit: 4 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.


Release Notes

0.2.0 - Clean up and documentation
4 days ago


  • Renamed the GPIOs class to GPIOController. This is a breaking change that the compiler will catch.
  • Updated the hz based constructor of the software pulse-width-modulation feature to initialise correctly. Before, it was only correct for 50hz, now it is correct for all values.


  • Added DocC comments to a bunch of the public symbols.
  • Added convenience functions for switching the value of a pin. It now have a .toggle(), similar to Bool.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics