|
|
2 jaren geleden | |
|---|---|---|
| .. | ||
| lib | 2 jaren geleden | |
| README.md | 2 jaren geleden | |
| application.fam | 2 jaren geleden | |
| js.c | 2 jaren geleden | |
| js.png | 2 jaren geleden | |
JavaScript... on the Flipper Zero?
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.
This is all possible using the microvium JavaScript engine. Check it out!
Download the artifact from the most recent successful action and put it in /ext/apps on your Flipper Zero.
npm install -g microvium.Create a new script with the following contents:
// script.mvm.js
console.log = vmImport(7);
function main() {
console.log('Hello, World!');
}
vmExport(1, main);
Compile it with microvium script.mvm.js. This will make a file in the same directory called script.mvm-bc.
Copy script.mvm-bc to /ext/apps_data/js on your Flipper Zero.
Run JavaScript on your Flipper Zero.
Press the center button to open the console and find "Hello, world!" in the log!