{"id":19155583,"url":"https://github.com/raspberrypi-go-drivers/rgbled","last_synced_at":"2026-04-21T05:33:49.376Z","repository":{"id":57558574,"uuid":"322670041","full_name":"raspberrypi-go-drivers/rgbled","owner":"raspberrypi-go-drivers","description":"Driver allowing to control a RGB LED from GPIO pins","archived":false,"fork":false,"pushed_at":"2020-12-18T18:32:06.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T14:48:43.648Z","etag":null,"topics":["driver","go","golang","raspberry-pi","raspberrypi-drivers","robotics"],"latest_commit_sha":null,"homepage":"","language":"Go","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/raspberrypi-go-drivers.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}},"created_at":"2020-12-18T18:07:00.000Z","updated_at":"2020-12-19T10:36:34.000Z","dependencies_parsed_at":"2022-09-15T19:00:27.730Z","dependency_job_id":null,"html_url":"https://github.com/raspberrypi-go-drivers/rgbled","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raspberrypi-go-drivers/rgbled","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspberrypi-go-drivers%2Frgbled","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspberrypi-go-drivers%2Frgbled/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspberrypi-go-drivers%2Frgbled/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspberrypi-go-drivers%2Frgbled/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raspberrypi-go-drivers","download_url":"https://codeload.github.com/raspberrypi-go-drivers/rgbled/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspberrypi-go-drivers%2Frgbled/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32078982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["driver","go","golang","raspberry-pi","raspberrypi-drivers","robotics"],"created_at":"2024-11-09T08:31:17.210Z","updated_at":"2026-04-21T05:33:49.359Z","avatar_url":"https://github.com/raspberrypi-go-drivers.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RGBLED\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/raspberrypi-go-drivers/rgbled.svg)](https://pkg.go.dev/github.com/raspberrypi-go-drivers/rgbled)\n![golangci-lint](https://github.com/raspberrypi-go-drivers/led/workflows/golangci-lint/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/raspberrypi-go-drivers/rgbled)](https://goreportcard.com/report/github.com/raspberrypi-go-drivers/rgbled)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nThis drivers allows interact with a RGB LED connected to a GPIO pin\n\n## Documentation\n\nFor full documentation, please visit [![Go Reference](https://pkg.go.dev/badge/github.com/raspberrypi-go-drivers/rgbled.svg)](https://pkg.go.dev/github.com/raspberrypi-go-drivers/rgbled)\n\n## Quick start\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/raspberrypi-go-drivers/rgbled\"\n\t\"github.com/stianeikeland/go-rpio/v4\"\n)\n\nfunc main() {\n\terr := rpio.Open()\n\tif err != nil {\n\t\tfmt.Println(\"impossible to init gpio\")\n\t\tos.Exit(1)\n\t}\n\tdefer rpio.Close()\n\trgbLED := rgbled.NewRGBLED(18, 27, 22)\n\t// Switch on the led an set it to lime green\n\tif err := rgbLED.SetColor(\"#a4eb34\"); err != nil {\n\t\tfmt.Println(err)\n\t\tos.Exit(1)\n\t}\n\ttime.Sleep(3 * time.Second)\n\t// Reduce the brightness to 50%\n\trgbLED.SetBrightness(50)\n\ttime.Sleep(3 * time.Second)\n\t// Switch off the LED\n\trgbLED.SetBrightness(0)\n}\n```\n\n## Raspberry Pi compatibility\n\nThis driver has has only been tested on an Raspberry Pi Zero WH using integrated bluetooth but may work well on other Raspberry Pi having integrated Bluetooth\n\n## License\n\nMIT License\n\n---\n\nSpecial thanks to @stianeikeland\n\nThis driver is based on his work in [stianeikeland/go-rpio](https://github.com/stianeikeland/go-rpio/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraspberrypi-go-drivers%2Frgbled","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraspberrypi-go-drivers%2Frgbled","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraspberrypi-go-drivers%2Frgbled/lists"}