{"id":21070712,"url":"https://github.com/microbit-foundation/micropython-microbit-v2","last_synced_at":"2025-04-12T13:41:00.293Z","repository":{"id":39853609,"uuid":"303477303","full_name":"microbit-foundation/micropython-microbit-v2","owner":"microbit-foundation","description":"Temporary home for MicroPython for micro:bit v2 as we stablise it before pushing upstream","archived":false,"fork":false,"pushed_at":"2024-09-18T02:06:06.000Z","size":418,"stargazers_count":48,"open_issues_count":44,"forks_count":27,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-02T08:57:58.937Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/microbit-foundation.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":"2020-10-12T18:21:15.000Z","updated_at":"2025-03-28T10:05:19.000Z","dependencies_parsed_at":"2023-10-16T17:15:24.241Z","dependency_job_id":"47f5a282-7004-4d95-a379-b87f84aae972","html_url":"https://github.com/microbit-foundation/micropython-microbit-v2","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-microbit-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-microbit-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-microbit-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-microbit-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microbit-foundation","download_url":"https://codeload.github.com/microbit-foundation/micropython-microbit-v2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248574335,"owners_count":21126994,"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-19T18:47:54.881Z","updated_at":"2025-04-12T13:41:00.272Z","avatar_url":"https://github.com/microbit-foundation.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"MicroPython on the micro:bit via CODAL\n======================================\n\nThis is a port of MicroPython to the micro:bit which uses the CODAL as the\nunderlying target platform.\n\nSetting up\n----------\n\nAfter cloning this repository update the submodules:\n\n    $ git submodule update --init\n\nThen build the MicroPython cross-compiler:\n\n    $ make -C lib/micropython/mpy-cross\n\nNote: you may need to add to the line above `PYTHON=python` (or some variant\nthereof) to select your Python executable (this defaults to `python3`); for\nexample:\n\n    $ make -C lib/micropython/mpy-cross PYTHON=python\n\nBuilding and running\n--------------------\n\nAfter setting up, go to the `src/` directory and build\n(as above, you may need to add `PYTHON=python` to the `make` command):\n\n    $ cd src\n    $ make\n\nThat will build both `libmicropython.a` (from source in `src/codal_port/`) and\nthe CODAL app (from source in `src/codal_app/`).  The resulting firmware will be\n`MICROBIT.hex` in the `src/` directory which can be copied to the micro:bit.\n\nOnce the firmware is on the device there will appear a REPL prompt on the serial\nport.  To test it you can run:\n\n    \u003e\u003e\u003e display.show(Image.HAPPY)\n    \u003e\u003e\u003e audio.play(Sound.HAPPY)\n    \nCode of Conduct\n-------------------\n\nTrust, partnership, simplicity and passion are our core values we live and \nbreathe in our daily work life and within our projects. Our open-source \nprojects are no exception. We have an active community which spans the globe \nand we welcome and encourage participation and contributions to our projects \nby everyone. We work to foster a positive, open, inclusive and supportive \nenvironment and trust that our community respects the micro:bit code of conduct. \n\nPlease see our [code of conduct](https://microbit.org/safeguarding/) which \noutlines our expectations for all those that participate in our community and \ndetails on how to report any concerns and what would happen should breaches occur.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobit-foundation%2Fmicropython-microbit-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrobit-foundation%2Fmicropython-microbit-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobit-foundation%2Fmicropython-microbit-v2/lists"}