Žiadny popis

Oliver Fabel f60913e9e3 adjust polyfill 1 rok pred
.vscode f60913e9e3 adjust polyfill 1 rok pred
examples b446c30bec add wacky canvas support 1 rok pred
lib f60913e9e3 adjust polyfill 1 rok pred
.gitignore f60913e9e3 adjust polyfill 1 rok pred
.gitmodules d469e62379 base on micropython library from lib branch 1 rok pred
CHANGELOG.md 83c7361148 update changelog 1 rok pred
Makefile 10aea55754 quick and dirty fap version with wacky polyfill 1 rok pred
README.md 435cdbaaff update README.md 1 rok pred
application.fam f60913e9e3 adjust polyfill 1 rok pred
icon.png f1f768c9df add logo and readme 1 rok pred
logo.svg f1f768c9df add logo and readme 1 rok pred
mp_flipper_app.c 10aea55754 quick and dirty fap version with wacky polyfill 1 rok pred
mp_flipper_app.h 10aea55754 quick and dirty fap version with wacky polyfill 1 rok pred
mp_flipper_app_settings.c 10aea55754 quick and dirty fap version with wacky polyfill 1 rok pred
mpconfigport.h 9d7617c8bb add floating point support 1 rok pred
py_app.c 10aea55754 quick and dirty fap version with wacky polyfill 1 rok pred
py_app.h 10aea55754 quick and dirty fap version with wacky polyfill 1 rok pred

README.md

MicroPython Flipper Zero

This branch contains the research of adding Python support to the famous Flipper Zero gadget. The content of this repository is just work in progress at the moment. But the first working examples already look promising. The research phase was successful and the development has moved to a fork of the original firmware. The lib branch of this repository contains just the MicroPython library.

Check the progress in this issue and feel free to share your thoughts and ideas.

Requirements

For compiling MicroPython, you will also need:

Setup

git clone --recurse-submodules git@github.com:ofabel/mp-flipper.git

Build

Since this application requires a 3th party library, more than just a simple ufbt build is needed to build the application:

make build

You can also build an launch the application on the attached Flipper Zero device in one command:

make launch

Usage

The application just starts with an open file browser. Here you can select any Python file to compile and execute from the SD card.

Disclaimer

This is work in progress and just a proof of concept. The produced application has very limited functionality at the moment and since the whole application runs in the SRAM there is not much space left. However, the Python application itself can use about 16 kB of heap space (minus up to 2 kB for the stack).