{"id":16600598,"url":"https://github.com/savjee/arduino-pca9551","last_synced_at":"2026-05-02T05:09:00.000Z","repository":{"id":73407556,"uuid":"195859216","full_name":"Savjee/arduino-pca9551","owner":"Savjee","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-28T14:10:56.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T18:51:58.323Z","etag":null,"topics":["arduino","driver","led","pca9551"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/Savjee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-08T17:41:16.000Z","updated_at":"2025-01-26T17:30:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"74c5b3a5-fc27-4ee3-94f0-a9b476c1adee","html_url":"https://github.com/Savjee/arduino-pca9551","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Savjee/arduino-pca9551","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Savjee%2Farduino-pca9551","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Savjee%2Farduino-pca9551/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Savjee%2Farduino-pca9551/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Savjee%2Farduino-pca9551/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Savjee","download_url":"https://codeload.github.com/Savjee/arduino-pca9551/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Savjee%2Farduino-pca9551/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261217473,"owners_count":23126259,"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":["arduino","driver","led","pca9551"],"created_at":"2024-10-12T00:15:02.027Z","updated_at":"2026-05-02T05:08:59.975Z","avatar_url":"https://github.com/Savjee.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003eArduino library for PCA9551\u003c/h3\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Build Status](https://travis-ci.org/Savjee/arduino-pca9551.svg?branch=master)](https://travis-ci.org/Savjee/arduino-pca9551)\n[![GitHub Issues](https://img.shields.io/github/issues/Savjee/arduino-pca9551.svg)](https://github.com/Savjee/arduino-pca9551/issues)\n[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/Savjee/arduino-pca9551.svg)](https://github.com/Savjee/arduino-pca9551/pulls)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)\n\n\u003c/div\u003e\n\n*Arduino library for the [PCA9551](https://www.nxp.com/docs/en/data-sheet/PCA9551.pdf) i2c LED Driver. Supports on/off and PWM.*\n\n*🧪This is work in progress.*\n\n---\n\n## ⛏️ How to use\n\nStart by installing the library and including it in your sketch. Also don't forget to import `Wire` and initialize the i2c bus:\n```cpp\n#include \u003cPCA9551.h\u003e\n#include \u003cWire.h\u003e\n\n\n// Initialize i2c\nWire.begin();\n```\n\nCreate a new instance of the LED driver. Possible addresses are `PCA9551_ADDR_1` until `PCA9551_ADDR_8` (which is `0x60` to `0x67`):\n\n```cpp\nPCA9551 ledDriver = PCA9551(PCA9551_ADDR_1);\n```\n\nNow you can manipulate the LEDs:\n\n```cpp\nledDriver.turnAllOn();\nledDriver.turnAllOff();\n\nledDriver.setLedState(0, LED_ON);\nledDriver.setLedState(0, LED_OFF);\n```\n\nThe `setLedState` function takes two arguments: the index of the led you want to control and the new state for that LED.\n\n## 😠 Limitations\n* PWM support has not been tested yet (although some code is already set up)\n* When using `setLedState` you can only control 1 LED, all others will be turned off by default.\n\n## ✍️ Contribute\nFeel free to fork this project, open issues and submit pull requests!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavjee%2Farduino-pca9551","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavjee%2Farduino-pca9551","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavjee%2Farduino-pca9551/lists"}