{"id":16525564,"url":"https://github.com/andrewn/pixel-matrix","last_synced_at":"2026-04-12T09:38:54.865Z","repository":{"id":66464787,"uuid":"44922152","full_name":"andrewn/pixel-matrix","owner":"andrewn","description":"Write to an LED Matrix connect to a Pi or Arduino via MQTT","archived":false,"fork":false,"pushed_at":"2015-10-28T17:25:01.000Z","size":148,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T02:24:52.085Z","etag":null,"topics":["arduino","johnny-five","ledmatrix","matrix","mqtt","pixel","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/andrewn.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":"2015-10-25T18:00:33.000Z","updated_at":"2024-07-28T21:18:17.000Z","dependencies_parsed_at":"2023-03-07T17:30:34.926Z","dependency_job_id":null,"html_url":"https://github.com/andrewn/pixel-matrix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrewn/pixel-matrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fpixel-matrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fpixel-matrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fpixel-matrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fpixel-matrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewn","download_url":"https://codeload.github.com/andrewn/pixel-matrix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fpixel-matrix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267339705,"owners_count":24071543,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["arduino","johnny-five","ledmatrix","matrix","mqtt","pixel","raspberry-pi"],"created_at":"2024-10-11T17:04:03.579Z","updated_at":"2026-04-12T09:38:49.838Z","avatar_url":"https://github.com/andrewn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"pixel-matrix\n===\n\n1. Connect an LED matrix to your Arduino/Genuino\n2. `npm install`\n3. Run `TOPIC=\u003ctopic\u003e npm start`\n4. Watch as your matrix dances\n\n## Deets\n\n### Connect an LED matrix to your Arduino\n\nI used one of [these cheap ones from eBay](http://www.ebay.co.uk/itm/141777360808). It has an MAX7219 chip and works over SPI.\n\nI kind of followed [these Johnny Five instructions](http://johnny-five.io/examples/led-matrix/) but with different pins on the Uno.\n\n|  Matrix | Uno   |\n|---------|-------|\n|  VCC    |  5V   |\n|  GND    |  GND  |\n|  DIN    |  11   |\n|  CS     |  10   |\n|  CLK    |  11   |\n\n### Connect an LED matrix to your Pi\n\n[Pin diagram here](http://pi.gadgetoid.com/pinout/spi) and [here](https://github.com/nebrius/raspi-io/wiki/Pin-Information).\n\n|  Matrix | Fn           | Pin num | Name     |\n|---------|--------------|---------|----------|\n|  VCC    |  5V          | 4       | 5v power |\n|  GND    |  GND         | 6       | Ground   |\n|  DIN    |  SPI1 MOSI   | 38      | GPIO20   |\n|  CS     |  SPI1 CE2    | 36      | GPIO16   |\n|  CLK    |  SPI1 SCLK   | 40      | GPIO21   |\n\n### Pick a topic and run it\n\nThe node process listens on the MQTT topic specified by the `TOPIC` environment variable. It falls back to the random `andrewn/game-of-life/state` topic if none is given.\n\n[http://gameoflife.surge.sh]() is publishing to this topic.\n\nOn a Pi, you also need to:\n\n    npm install raspi-io\n\nAnd add the `PLATFORM=pi` flag to `npm start` like this:\n\n     sudo TOPIC=\u003ctopic\u003e PLATFORM=pi npm start\n\nYou can autorun on boot:\n\n     sudo cp pixel-matrix.service /etc/systemd/system/\n     sudo systemctl enable pixel-matrix\n\n### Data format\n\nYour topic must supply a JSON-encode multi-dimensional array representing each pixel in the matrix.\n\nFor example, this will draw a heart:\n\n    image = JSON.stringify(\n      [\n        \"01100110\",\n        \"10011001\",\n        \"10000001\",\n        \"10000001\",\n        \"01000010\",\n        \"00100100\",\n        \"00011000\",\n        \"00000000\"\n      ]\n    );\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewn%2Fpixel-matrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewn%2Fpixel-matrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewn%2Fpixel-matrix/lists"}