// this works on the Right hand side of the IDE , if you send it to RAM
// but wont work in the actual app.js file
require("Font7x11Numeric7Seg");
The App loader does something secret in the background to add the font module into the source file that is mimised - maybe ?
I have also uploaded the Font7x11Numeric7Seg.js file onto the bangle and this makes no difference. The only way that the App will work is if its installed through the App Loader or Run in RAM. If you edit the code and upload to storage it stops working and gives this exception.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Here's what I did.
Checkout the latest code from
https://github.com/espruino/BangleApps/apps/s7clk/app.js
Upload app.js through the IDE , click on the storage icon, navigate to file, change name to 7clk.app.js.
Restart the s7clk App and it will fail ?
The App loader does something secret in the background to add the font module into the source file that is mimised - maybe ?
I have also uploaded the Font7x11Numeric7Seg.js file onto the bangle and this makes no difference. The only way that the App will work is if its installed through the App Loader or Run in RAM. If you edit the code and upload to storage it stops working and gives this exception.