demoapp 0.02: Minor adjustment to fix out of memory errors

pull/837/head^2
Gordon Williams 2021-10-06 16:08:11 +01:00
parent 70702560c6
commit 192e8470d1
3 changed files with 5 additions and 5 deletions

View File

@ -1236,9 +1236,9 @@
{ "id": "demoapp",
"name": "Demo Loop",
"icon": "app.png",
"version":"0.01",
"version":"0.02",
"description": "Simple demo app - displays Bangle.js, JS logo, graphics, and Bangle.js information",
"tags": "",
"tags": "bno2",
"type":"app",
"allow_emulator":true,
"storage": [

View File

@ -1 +1,2 @@
0.01: New App!
0.02: Minor adjustment to fix out of memory errors

View File

@ -60,8 +60,8 @@ var scenes = [
};
},
function() {
Bangle.setLCDMode("120x120");
var img = require("heatshrink").decompress(atob("oNBxH+5wA/AH4A/AH4A/AH4A/AH4A/AH4A/AH4A/AH4A/AH4A/AH4A/AH4A/AH4A/AH4A/AH4A/AH4A/AHGpAAoQKv4ADCBQAeqsrAAejBw9/B4oABqt/IGepHw5CEQspALH5hBC5pAvv4/MAALFkIBWpPI6IHqpAu0Z3GfYOpRYdPQEhALYIp2FBYNVI4JAvvL4LH0yBYAFJAQQQ5Ay1JAFftBAQBYxCDv+qIGiCHIQiGnIBfOv5BJIQRAyIJkrvKEkIBrFBB4qEGIGRCNYsZAQIQV/IZDEiICRCDQVJAUIQVPC4lVIF6yJQYpAZ5t/FYvNIBepqtVIJGjIDoqBDY2pdYo3DfAhBIQLmpvIcDvIrC5oJEIAhTCGQmj5qgEC4t5e7YrBqt5BI6UFBg15v4XHbQwAQb4oAKv7NKABdVRoYATUAwnICqjZFIMdVE4+jXI4XGYCxBFFZN/M5OpCxUrvJ/ZFYmjvNVAAY+KCwpDBC6YAV5vNC9oA/AH4A/AHYA=="));
g.clear();
y = 0;
var step = 4;
@ -71,7 +71,6 @@ var scenes = [
g.drawImage(img,60,60,{rotate:Math.sin(y*0.03)*0.5});
g.flip();
}, 20);
Bangle.setLCDMode("120x120");
return function() {
if (i) clearInterval(i);
};