Richard de Boer 0f1476cede E_showMenu improvements
- remove unused variable
- remove unused parameter from `select()`
- shave a few bytes off `move()`

If a numerical item has `item.wrap` we no longer check if `item.min/max` is set,
because your menu will be broken either way.
2021-11-01 19:43:26 +01:00
..
2021-11-01 19:43:26 +01: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.