{"id":23069665,"url":"https://github.com/roboticsbrno/logic-serial","last_synced_at":"2025-04-03T09:46:26.292Z","repository":{"id":106423653,"uuid":"515720619","full_name":"RoboticsBrno/logic-serial","owner":"RoboticsBrno","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-19T20:04:18.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-08T23:26:04.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://2022.robotickytabor.cz/microbit/logic/","language":"C++","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/RoboticsBrno.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-19T19:44:16.000Z","updated_at":"2022-07-19T23:00:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc1a76a0-e976-4533-9d3a-2c293d15412a","html_url":"https://github.com/RoboticsBrno/logic-serial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2Flogic-serial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2Flogic-serial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2Flogic-serial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2Flogic-serial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoboticsBrno","download_url":"https://codeload.github.com/RoboticsBrno/logic-serial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246981136,"owners_count":20863825,"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-12-16T06:16:36.283Z","updated_at":"2025-04-03T09:46:26.280Z","avatar_url":"https://github.com/RoboticsBrno.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logic-serial\nAn example making Logic board into a serial-connected peripheral.\n\nSerial interface is connected to gpio 5 (rx) and 2 (tx).\n\n## Protocol\nAll communication is text-based. The program expects line-separated commands and sends line-separated events. Arguments are separated by spaces.\n\n### Commands\n- `set \u003cx\u003e \u003cy\u003e \u003cred\u003e \u003cgreen\u003e \u003cblue\u003e`\n    - set led at coordinates `x`, `y` to color `Rgb(red, green, blue)`\n- `show`\n    - show the current state of the leds\n- `clear`\n    - turn off all leds\n- `set_status \u003cindex\u003e \u003cred\u003e \u003cgreen\u003e \u003cblue\u003e`\n    - set the status led at index `index` to color `Rgb(red, green, blue)`\n- `show_status`\n    - show the current state of the status leds\n- `clear_status`\n    - turn off all status leds\n- `set_buzzer \u003cstate\u003e`\n    - set the buzzer to state `state` (0 or 1)\n\n### Events\n- `pressed \u003cid\u003e`\n    - a button with id `id` was pressed\n- `released \u003cid\u003e`\n    - a button with id `id` was released\n\nButton ids come in sequence starting from top to bottom, left to right,\n\ne.g. top left (0), top right (1), bottom left (2), bottom right (3), arrow up (4), arrow left (5), center (6), arrow right (7), arrow down (8).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboticsbrno%2Flogic-serial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froboticsbrno%2Flogic-serial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboticsbrno%2Flogic-serial/lists"}