{"id":15932787,"url":"https://github.com/ofabel/mp-flipper","last_synced_at":"2025-04-04T15:05:07.293Z","repository":{"id":230925664,"uuid":"780478405","full_name":"ofabel/mp-flipper","owner":"ofabel","description":"Python support for Flipper Zero","archived":false,"fork":false,"pushed_at":"2025-01-19T06:42:20.000Z","size":2280,"stargazers_count":158,"open_issues_count":3,"forks_count":8,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T14:04:27.804Z","etag":null,"topics":["adc","f0","flipper-app","flipper-plugin","flipper-zero","flipperzero","gpio","infrared","micropython","pwm","python"],"latest_commit_sha":null,"homepage":"https://ofabel.github.io/mp-flipper/","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/ofabel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-04-01T15:11:13.000Z","updated_at":"2025-03-22T23:10:07.000Z","dependencies_parsed_at":"2024-12-14T11:11:25.809Z","dependency_job_id":"96912728-a4b3-4798-93dc-e2f72c808d1a","html_url":"https://github.com/ofabel/mp-flipper","commit_stats":{"total_commits":119,"total_committers":1,"mean_commits":119.0,"dds":0.0,"last_synced_commit":"60f06b704a492a5976d1d5434ff80e3069f0be30"},"previous_names":["ofabel/mp-flipper"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofabel%2Fmp-flipper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofabel%2Fmp-flipper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofabel%2Fmp-flipper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofabel%2Fmp-flipper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ofabel","download_url":"https://codeload.github.com/ofabel/mp-flipper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198435,"owners_count":20900079,"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":["adc","f0","flipper-app","flipper-plugin","flipper-zero","flipperzero","gpio","infrared","micropython","pwm","python"],"created_at":"2024-10-07T02:03:56.556Z","updated_at":"2025-04-04T15:05:07.267Z","avatar_url":"https://github.com/ofabel.png","language":"C","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"![License](https://img.shields.io/github/license/ofabel/mp-flipper)\n![Version](https://img.shields.io/github/v/tag/ofabel/mp-flipper)\n![](https://img.shields.io/github/issues/ofabel/mp-flipper)\n\n# MicroPython Flipper Zero\n\nAllows you to use the power of Python natively on your Flipper Zero.\nThe application is available on the official [Flipper Lab](https://lab.flipper.net/apps/upython).\nFor details on how to programm your Flipper with Python, check out the [documentation](https://ofabel.github.io/mp-flipper/) on GitHub pages.\n\n![MicroPython REPL](./docs/pages/assets/repl.gif)\n\n## Disclaimer\n\nThis FAP version requires about 80 kB from SRAM to start (needed for the Python runtime and compiler).\nDue to memory fragmentation it's possible, that the application crashes when you start it.\nIf this happens, just try again (the crash doesn't harm your device).\n\n\u003e [!IMPORTANT]\n\u003e This problem is already addressed to the firmware developers in [this issue](https://github.com/flipperdevices/flipperzero-firmware/issues/3927).\n\u003e Nevertheless, running the uPython application from the SD card is still a heavy task for the Flipper.\n\n_I'm thinking about publishing a fork of the original firmware with uPython bundled as a core service._\n_This would mitigate all the memory problems._\n_The SD card version would still be there and maintained, but possibly with a limited set of features._\n\n## Development\n\nThis section is only relevant, if you want to build the FAP on your own.\n\n### Branches\n\nThis branch contains the [FAP](https://developer.flipper.net/flipperzero/doxygen/apps_on_sd_card.html) version.\nThe results of the preceding research phase is still available in the [poc](https://github.com/ofabel/mp-flipper/tree/poc) branch.\nThe [lib](https://github.com/ofabel/mp-flipper/tree/lib) branch of this repository contains just the [MicroPython](https://github.com/micropython/micropython) library.\nThe progress of further research on what can be achieved when moving functionality to the firmware can be found in the [fork of the original firmware](https://github.com/ofabel/flipperzero-firmware/tree/ofa/micropython).\n\n### Requirements\n\n* [Git](https://git-scm.com/)\n* [Make](https://www.gnu.org/software/make/)\n* [uFBT](https://pypi.org/project/ufbt/) available in your `PATH` (or you have to adjust the [Makefile](./Makefile))\n* [Flipper Zero](https://flipperzero.one/)\n\n### Setup\n\n```bash\ngit clone --recurse-submodules git@github.com:ofabel/mp-flipper.git\n```\n\n### Build\n\nJust open a terminal and run the Makefile targets:\n\n```bash\nmake build\n```\n\nYou can also build an launch the application on the attached Flipper Zero device in one command:\n\n```bash\nmake launch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofabel%2Fmp-flipper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofabel%2Fmp-flipper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofabel%2Fmp-flipper/lists"}