Flipper Zero hacking tool gets MicroPython support

Developer and engineer Oliver Fabel has developed a port that is designed to run MicroPython on the Flipper Zero. This port allows users to write programs for Flipper Zero in Python, instead of built-in JavaScript. Till now you can access GPIO, ADC, PWM, the speaker, buttons, the display, and infrared communication with this but it doesn’t have support for NFC or RFID yet, and it’s still under development.

Previously we have written about various addon boards for the Flipper Zero like the Mayhem v2, the ESP8266 Deauther board, the CAN bus addon board, and other powerful alternatives of the Flipper like The M1 and the HackBat. Feel free to check those out if you are interested in the topic.

MicroPython on Flipper Zero

The process is simple, and you don’t have to do a firmware update to work with MicroPython, you can download the application from the community-driven Flipper app store and are good to go. No custom firmware is required so there is no risk of bricking your flipper.

MicroPython on Flipper Zero
REPL Python Shell running on Flipper Zero

While I was checking the changelogs I saw some new updates have come in and now you can use a Python shell, also known as a REPL (Read-Eval-Print Loop), directly on the Flipper Zero. Additionally, you can now run Python scripts directly from the CLI by specifying the script’s path. This update also includes an upgrade to MicroPython version 1.23.0 along with bug fixes.

On the mp-flipper GitHub repo, Fabel mentions that it’s not a complete port of MicroPython, and only a few features are supported. Additionally, he also mentions this FAP version requires about 80 kB from SRAM to start (needed for the Python runtime and compiler). Due to memory fragmentation, it’s possible that the application crashes when you start it. If this happens, just try again (the crash doesn’t harm your device).

Micropython tic tac toe on Flipper Zero
Tic Tac Toe running on flipper zero with MicroPython
More information about the port is available on the Flipper Lab app-store. The source code and example codes can be found on GitHub.
Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

Radxa Orion O6 Armv9 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
1 Comment
oldest
newest
Tim
Tim
2 months ago

I don’t have a zero, but if I did I would much rather use python versus JavaScript so seems like a nice development.

Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...