{"id":13667150,"url":"https://github.com/Kaiede/PCA9685","last_synced_at":"2025-04-26T15:32:13.961Z","repository":{"id":100552720,"uuid":"144735740","full_name":"Kaiede/PCA9685","owner":"Kaiede","description":"PCA9685 I2C Driver for Swift","archived":false,"fork":false,"pushed_at":"2019-11-07T22:23:52.000Z","size":16,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-20T13:07:39.943Z","etag":null,"topics":["raspberry-pi","raspberry-pi-gpio","swift","swiftygpio"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kaiede.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-14T15:02:09.000Z","updated_at":"2021-03-05T11:16:49.000Z","dependencies_parsed_at":"2023-05-15T21:00:37.046Z","dependency_job_id":null,"html_url":"https://github.com/Kaiede/PCA9685","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaiede%2FPCA9685","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaiede%2FPCA9685/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaiede%2FPCA9685/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaiede%2FPCA9685/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kaiede","download_url":"https://codeload.github.com/Kaiede/PCA9685/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251008753,"owners_count":21522170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["raspberry-pi","raspberry-pi-gpio","swift","swiftygpio"],"created_at":"2024-08-02T07:00:32.705Z","updated_at":"2025-04-26T15:32:13.671Z","avatar_url":"https://github.com/Kaiede.png","language":"Swift","funding_links":[],"categories":["Sensors"],"sub_categories":["Networking, IoT, Bus Protocols, …"],"readme":"# PCA9685\n\n[![Build Status](https://github.com/Kaiede/PCA9685/workflows/CI/badge.svg)](https://github.com/Kaiede/PCA9685/actions)\n[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)\n\n![Swift](https://img.shields.io/badge/Swift-5.x-brightgreen.svg?style=flat)\n![Swift](https://img.shields.io/badge/Swift-4.x-brightgreen.svg?style=flat)\n![Swift](https://img.shields.io/badge/Swift-3.x-brightgreen.svg?style=flat)\n\n![SwiftPM](https://img.shields.io/badge/SwiftPM-✔-blue.svg?style=flat)\n\n![Raspbian](https://img.shields.io/badge/OS-Raspbian-green.svg)\n\nA Swift driver for the PCA9685 PWM controller over I2C, using SwiftyGPIO.\n\n## Getting Started\n\nA simple example looks like this:\n\n```\n// It doesn't really matter what Raspberry Pi Board you use.\n// C.H.I.P. should also work.\nlet pca9685 = PCA9685(supportedBoard: .RaspberryPiPlusZero)\n\n// This sets the frequency for all channels\n// Range: 24 - 1526 Hz\npca9685.frequency = 1440 // Hz\n\n// Can set an individual channel's on and off steps.\n// Range: 0 - 4095 Steps\n// Example: ~50% Duty Cycle\npca9685.setChannel(0, onStep: 0, offStep: 2048)\n\n// Or all channels at once\npca9685.setAllChannels(onStep: 0, offStep: 0)\n```\n\n## Built With\n\n* [SwiftyGPIO](https://github.com/uraimo/SwiftyGPIO)\n* [Adafruit-PCA9685](https://github.com/adafruit/Adafruit_Python_PCA9685) - Inspiration/Basis of Implementation.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Authors\n\n* **Adam Thayer** - *Initial work* - [Kaiede](https://github.com/Kaiede)\n\nSee also the list of [contributors](https://github.com/Kaiede/RPiLight/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaiede%2FPCA9685","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKaiede%2FPCA9685","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaiede%2FPCA9685/lists"}