{"id":49346327,"url":"https://github.com/microsoft/pxt-ws2812b","last_synced_at":"2026-04-27T08:01:11.335Z","repository":{"id":65976086,"uuid":"123207209","full_name":"microsoft/pxt-ws2812b","owner":"microsoft","description":"A driver for WS2812B LEDs in MakeCode","archived":false,"fork":false,"pushed_at":"2022-09-01T20:21:28.000Z","size":40,"stargazers_count":19,"open_issues_count":3,"forks_count":40,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-04-17T22:35:36.954Z","etag":null,"topics":["makecode","microbit"],"latest_commit_sha":null,"homepage":"https://makecode.microbit.org/pkg/microsoft/pxt-ws2812b","language":"Assembly","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/microsoft.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":"SECURITY.md","support":null}},"created_at":"2018-02-28T00:46:04.000Z","updated_at":"2025-08-17T16:33:44.000Z","dependencies_parsed_at":"2023-02-19T19:20:20.539Z","dependency_job_id":null,"html_url":"https://github.com/microsoft/pxt-ws2812b","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/microsoft/pxt-ws2812b","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-ws2812b","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-ws2812b/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-ws2812b/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-ws2812b/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/pxt-ws2812b/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-ws2812b/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32066694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["makecode","microbit"],"created_at":"2026-04-27T08:00:39.458Z","updated_at":"2026-04-27T08:01:11.295Z","avatar_url":"https://github.com/microsoft.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ws2812\n\nA driver for WS2812B programmable LEDs in MakeCode.\n\n## Usage\n\n### sendBuffer\n\nThe package exposes ``ws2812b.sendBuffer`` that bit-bangs a color buffer for WS2812B LEDs over a pin.\n\nSee https://github.com/microsoft/pxt-neopixel for an example of usage.\n\n### setBufferMode\n\nThis function allows to specify the color layout in the buffer.\n\n```\n#define LIGHTMODE_RGB 1\n#define LIGHTMODE_RGBW 2\n#define LIGHTMODE_RGB_RGB 3\n```\n\n## ~ hint\n \n**Bluetooth disabled**: This package disables BLE as the real time requirements of the WS2812 conflict with the BLE stack.\n\n## ~\n\n## Simulator support\n\nThe ``sendBuffer`` function is supported by the micro:bit simulator!\n\n## License\n\nMIT\n\n## Supported targets\n\n* for PXT/microbit\n* for PXT/calliope\n\n(The metadata above is needed for package search.)\n\n\n## Code of Conduct\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fpxt-ws2812b","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fpxt-ws2812b","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fpxt-ws2812b/lists"}