storm64 7b2c745f77
Update E_showMenu_Q3.min.js
Needed to recreate minification due to a replacement of the key name:
```
a=g.wrapString(m[a],b.w-h);1<a.length&&(g.setFont("6x15"),a=g.wrapString(__m[a]__,b.w-h));
```
The last `m[a]` has no matching element anymore.
2022-04-20 00:52:37 +02:00
..
2022-04-20 00:52:37 +02:00
2020-04-29 11:17:48 +01:00
2021-09-23 12:17:39 +01:00
2019-03-13 14:44:34 +00:00
2019-03-13 14:44:34 +00:00
2018-12-11 10:34:11 +00:00
2019-03-13 14:44:34 +00:00
2018-06-15 15:33:19 +01:00
2018-06-15 15:33:19 +01:00
2019-03-13 14:44:34 +00:00
2019-03-13 14:44:34 +00:00
2018-06-15 15:33:19 +01:00
2018-01-28 23:10:35 +01:00
2018-08-13 09:24:37 +01:00

Built-in JS modules

Simply stick the JS modules you want in this directory, then modify the boards/BOARDNAME.py file so it includes a line that sets JSMODULESOURCES:

info = {
 ....
 'build' : {
   ....
   'makefile' : [
     ....
     'JSMODULESOURCES+=libs/js/YOUR_MODULE.min.js',
   ]
 }
};

or add them as prefix to make

JSMODULESOURCES=libs/js/YOUR_MODULE.min.js make

Then when you rebuild, require("YOUR_MODULE") will magically pull in your module.

Notes

  • Until referenced, modules use NO RAM
  • Once referenced, the JS code in a module will be executed (from Flash).
  • Every function declared in the module's root scope will take up some RAM
  • However the code inside that function will be kept in Flash memory, so won't take up RAM.