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
🕓 1 year ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/fizker/swift-gpio.git", from: "0.2.0")

SwiftGPIO

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

GitHub

link
Stars: 0
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Release Notes

0.2.0 - Clean up and documentation
1 year ago

Breaking:

  • 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.

Features:

  • 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