{"id":20813974,"url":"https://github.com/dtcristo/microbit-demos","last_synced_at":"2025-05-07T11:21:58.420Z","repository":{"id":142858670,"uuid":"165330084","full_name":"dtcristo/microbit-demos","owner":"dtcristo","description":"Rust demos running on the BBC micro:bit","archived":false,"fork":false,"pushed_at":"2022-09-08T05:05:17.000Z","size":31,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T09:37:45.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dtcristo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2019-01-12T00:41:00.000Z","updated_at":"2023-07-02T01:20:51.000Z","dependencies_parsed_at":"2023-04-08T09:32:33.388Z","dependency_job_id":null,"html_url":"https://github.com/dtcristo/microbit-demos","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/dtcristo%2Fmicrobit-demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtcristo%2Fmicrobit-demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtcristo%2Fmicrobit-demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtcristo%2Fmicrobit-demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtcristo","download_url":"https://codeload.github.com/dtcristo/microbit-demos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252866124,"owners_count":21816397,"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-11-17T21:09:04.865Z","updated_at":"2025-05-07T11:21:58.393Z","avatar_url":"https://github.com/dtcristo.png","language":"Rust","funding_links":[],"categories":["🦀 Rust"],"sub_categories":["©️ C/C++ Examples"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003emicrobit-demos\u003c/h1\u003e\n  \u003cp\u003e\n    \u003cstrong\u003e\n      Rust demos running on the \u003ca href=\"https://microbit.org/\"\u003eBBC micro:bit\u003c/a\u003e\n    \u003c/strong\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## Demos\n\n- `leds` - Blinking LED pattern\n- `serial_buttons` - Sends button state over serial\n- `serial_buttons_interrupt` - Sends button state over serial, interrupts on button press/release\n- `serial_echo` - Echos any serial data received\n- `serial_random` - Generates random bytes and sent over serial\n- `snake` - Classic snake game\n\nhttps://user-images.githubusercontent.com/1206028/189038516-e71f4bc1-162b-4220-af4e-dbe14c5e3f00.mp4\n\n## Dependencies\n\n- `rustup target add thumbv6m-none-eabi`\n- `arm-none-eabi-gdb` - GDB debugger for Arm\n- `openocd` - Open On-Chip Debugger\n- `picocom` or `minicom` - Terminal emulator\n\nThe [Installation](https://rust-embedded.github.io/book/intro/install.html)\nguide in [The Embedded Rust Book](https://rust-embedded.github.io/book/intro/index.html)\nhas tips to install some of these tools on different platforms.\n\n## Flashing and debugging demos\n\n### Flashing\n\nConnect BBC micro:bit via USB and flash a given demo.\n\n```sh\nbin/flash demo_name\n```\n\nThe micro:bit will automatically reboot and start running the demo.\n\n### Serial console\n\nSome demos communicate over serial. For these demos start a console session in a\nseparate terminal window. The provided shell script expects the USB console\ndevice at `/dev/ttyACM0`, update this if required. On macOS this may be something like `/dev/cu.usbmodem14412`.\n\n```sh\nbin/console\n```\n\n### Debugging\n\nTo debug a program on the micro:bit first start the debug server.\n\n```sh\nbin/debug_server\n```\n\nStart a GDB session for a given demo.\n\n```sh\nbin/debug demo_name\n```\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0\n  ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license\n  ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtcristo%2Fmicrobit-demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtcristo%2Fmicrobit-demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtcristo%2Fmicrobit-demos/lists"}