MX 4a8686d23d add new app and add text for bt serial 2 роки тому
..
lib 4a8686d23d add new app and add text for bt serial 2 роки тому
README.md 4a8686d23d add new app and add text for bt serial 2 роки тому
application.fam 4a8686d23d add new app and add text for bt serial 2 роки тому
js.c 4a8686d23d add new app and add text for bt serial 2 роки тому
js.png 4a8686d23d add new app and add text for bt serial 2 роки тому

README.md

js-f0

JavaScript... on the Flipper Zero?

Notice

I'm taking a break from this. I've worked too much on this, and it feels really repetitive now. I'll still accept pull requests for any changes.

How?

This is all possible using the microvium JavaScript engine. Check it out!

Installation

Download the artifact from the most recent successful action and put it in /ext/apps on your Flipper Zero.

Usage

  1. Install microvium on your computer with npm install -g microvium.
  2. Create a new script with the following contents:

    // script.mvm.js
    console.log = vmImport(7);
    function main() {
    console.log('Hello, World!');
    }
    vmExport(1, main);
    
  3. Compile it with microvium script.mvm.js. This will make a file in the same directory called script.mvm-bc.

  4. Copy script.mvm-bc to /ext/apps_data/js on your Flipper Zero.

  5. Run JavaScript on your Flipper Zero.

  6. Press the center button to open the console and find "Hello, world!" in the log!