{"id":13481066,"url":"https://github.com/xrigau/androidthings-ws2801-driver","last_synced_at":"2025-03-27T11:31:40.355Z","repository":{"id":145949403,"uuid":"77649652","full_name":"xrigau/androidthings-ws2801-driver","owner":"xrigau","description":"Android Things driver for the WS2801 RGB LED strip (includes demo app)","archived":false,"fork":false,"pushed_at":"2018-08-05T13:33:49.000Z","size":352,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T14:43:12.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xrigau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-12-30T01:06:38.000Z","updated_at":"2023-12-05T20:33:52.000Z","dependencies_parsed_at":"2024-01-14T09:10:07.914Z","dependency_job_id":"60eb2d33-88e1-4231-85d1-d180aa1bd5f7","html_url":"https://github.com/xrigau/androidthings-ws2801-driver","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrigau%2Fandroidthings-ws2801-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrigau%2Fandroidthings-ws2801-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrigau%2Fandroidthings-ws2801-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrigau%2Fandroidthings-ws2801-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xrigau","download_url":"https://codeload.github.com/xrigau/androidthings-ws2801-driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245836190,"owners_count":20680331,"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":[],"created_at":"2024-07-31T17:00:48.333Z","updated_at":"2025-03-27T11:31:39.932Z","avatar_url":"https://github.com/xrigau.png","language":"Java","funding_links":[],"categories":["Useful links"],"sub_categories":["Drivers"],"readme":"# androidthings-ws2801-driver [ ![Download](https://api.bintray.com/packages/xrigau/maven/ws2801-driver/images/download.svg) ](https://bintray.com/xrigau/maven/ws2801-driver/_latestVersion)\n\nThis repo contains the Android Things driver to control an LED strip based on the WS2801 chip (and should work on similar LED strips as long as the protocol is the same).\n\nThe driver can be found in the `ws2801-driver` module and there's a demo app showing how to use the driver in the `demo-app` module.\n\nOnly tested with a Raspberry Pi 3 but should work with other devices too.\n\n## Schematics\n\n![raspberry pi 3 schematics](rpi3-schematics.png)\n\n\n## Using\n\nThe driver is now available on jCenter so you can include it as a gradle dependency:\n\n```groovy\ndependencies {\n  compile 'com.xrigau:ws2801-driver:1.0.0'\n}\n```\n\nAnd you can start using it in your Android Things project:\n\n```java\nWs2801 ledstrip = Ws2801.create(SPI_DEVICE_NAME, Ws2801.Mode.RGB);\nledstrip.write(new int[]{Color.parseColor(\"#0face0\")});\n\n// Later on\nledstrip.close();\n```\nMore on the WS2801: https://cdn-shop.adafruit.com/datasheets/WS2801.pdf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxrigau%2Fandroidthings-ws2801-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxrigau%2Fandroidthings-ws2801-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxrigau%2Fandroidthings-ws2801-driver/lists"}