{"id":18643565,"url":"https://github.com/webispy/respk_toy","last_synced_at":"2025-10-28T00:02:44.194Z","repository":{"id":151289675,"uuid":"264491518","full_name":"webispy/respk_toy","owner":"webispy","description":"ReSpeaker 2-mic led and button control","archived":false,"fork":false,"pushed_at":"2020-07-05T13:20:52.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T16:45:48.577Z","etag":null,"topics":["respeaker-2mics-array"],"latest_commit_sha":null,"homepage":"","language":"C","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/webispy.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-16T17:38:14.000Z","updated_at":"2022-03-14T00:43:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"61e12d0b-8dea-4924-8d57-dfee8e3898c8","html_url":"https://github.com/webispy/respk_toy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webispy/respk_toy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webispy%2Frespk_toy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webispy%2Frespk_toy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webispy%2Frespk_toy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webispy%2Frespk_toy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webispy","download_url":"https://codeload.github.com/webispy/respk_toy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webispy%2Frespk_toy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281361348,"owners_count":26487881,"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-10-27T02:00:05.855Z","response_time":61,"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":["respeaker-2mics-array"],"created_at":"2024-11-07T06:07:24.461Z","updated_at":"2025-10-28T00:02:44.190Z","avatar_url":"https://github.com/webispy.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toy with ReSpeaker + Rpi ZERO WH\n\n## Features\n\n* RGB LED Control (3 REG LEDs on the ReSpeaker board, SPI CE1)\n* Button Control (Pressed, Released, Clicked, DoubleClicked and LongPress event)\n* Dot-matrix 32x8 Control (MAX7219, SPI CE0)\n\n## Build\n\nBuild from HOST PC(x86) using crosscompile docker image\n\n    docker run -it --rm -v $PWD:$PWD -w $PWD nugulinux/devenv:rpi_buster ./build.sh\n\n## Install\n\n### ReSpeaker\n\nhttps://github.com/respeaker/seeed-voicecard\n\n    git clone https://github.com/respeaker/seeed-voicecard\n    cd seeed-voicecard\n    sudo ./install.sh\n    sudo reboot\n\n### Toy daemon\n\n1. Copy the files in the OUTPUT directory to your Raspberry pi\n\n2. Enable ntoy systmed service\n\n```sh\nsystemctl enable ntoy\nsystemctl start ntoy\n```\n\n\n## Usage\n\n### LED control\n\nOn/Off the LED\n\n    mdbus2 -s n.toy /LED n.toy.LED.On\n\nSet RGB\n\n    mdbus2 -s n.toy /LED n.toy.LED.RGB 255 255 255\n\nSet Brightness (0 ~ 31)\n\n    mdbus2 -s n.toy /LED n.toy.LED.Brightness 31\n\nYou can also control each led using the object path(0 ~ 2):\n\n    mdbus -s n.toy /LED/0 n.toy.LED.Off\n\n### Button event monitoring\n\n    mdbus -sl n.toy\n\nOne click events:\n\n    [SIGNAL] n.toy.Button.Pressed  /Button  :1.8\n    ()\n    [SIGNAL] n.toy.Button.Clicked  /Button  :1.8\n    ()\n    [SIGNAL] n.toy.Button.Released  /Button  :1.8\n    ()\n\nDouble click and release events:\n\n    [SIGNAL] n.toy.Button.Pressed  /Button  :1.8\n    ()\n    [SIGNAL] n.toy.Button.Clicked  /Button  :1.8\n    ()\n    [SIGNAL] n.toy.Button.Released  /Button  :1.8\n    ()\n    [SIGNAL] n.toy.Button.Pressed  /Button  :1.8\n    ()\n    [SIGNAL] n.toy.Button.DoubleClicked  /Button  :1.8\n    ()\n    [SIGNAL] n.toy.Button.Released  /Button  :1.8\n    ()\n\nLong-press and release events:\n\n    [SIGNAL] n.toy.Button.Pressed  /Button  :1.8\n    ()\n    [SIGNAL] n.toy.Button.LongPress  /Button  :1.8\n    ()\n    [SIGNAL] n.toy.Button.Clicked  /Button  :1.8\n    ()\n    [SIGNAL] n.toy.Button.Released  /Button  :1.8\n    ()\n\n### Dot-matrix control\n\nClear\n\n    mdbus -s n.toy /Matrix n.toy.Matrix.Clear\n\nTurn on/off the pixel (row, col, 1 or true = On / 0 or false = Off)\n\n    mdbus -s n.toy /Matrix n.toy.Matrix.SetPixel 4 15 1\n    mdbus -s n.toy /Matrix n.toy.Matrix.SetPixel 4 15 0\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebispy%2Frespk_toy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebispy%2Frespk_toy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebispy%2Frespk_toy/lists"}