-
May be similar to this? http://forum.espruino.com/conversations/372404/
-
-
-
-
-
-
I don't have any ideas, but I am sure if you wait @Gordon will.
-
Maybe this can help: https://www.espruino.com/Web+Bluetooth.
-
-
-
-
-
A while ago, I received my Bangle.js 2 and it was working great, but now, It seems whenever I am touching the screen a lot (like playing some sort of game) it fires touch events when I am not touching it, but then stops firing the events after a little while. Here is a log of the unexpected touch events it made with this code:
Bangle.on('touch', (button, xy) => { console.log("coords are", xy); });
coords are { "x": 19, "y": 15, "type": 0 } coords are { "x": 24, "y": 17, "type": 0 } coords are { "x": 18, "y": 15, "type": 0 } coords are { "x": 24, "y": 18, "type": 0 } coords are { "x": 22, "y": 19, "type": 0 } coords are { "x": 31, "y": 20, "type": 0 } coords are { "x": 13, "y": 11, "type": 0 } coords are { "x": 1, "y": 7, "type": 0 } coords are { "x": 1, "y": 0, "type": 0 } coords are { "x": 1, "y": 2, "type": 0 } coords are { "x": 1, "y": 0, "type": 0 } coords are { "x": 1, "y": 0, "type": 0 } coords are { "x": 1, "y": 9, "type": 0 } coords are { "x": 1, "y": 5, "type": 0 } coords are { "x": 1, "y": 1, "type": 0 } coords are { "x": 9, "y": 5, "type": 0 } coords are { "x": 1, "y": 23, "type": 0 } coords are { "x": 6, "y": 1, "type": 2 }
I am running 2v12 firmware and I have tried the Factory Reset option in the settings menu, but that did fix the problem.
Is there any way to fix this? -
I am making a menu modification app with e.showScroller, but when you click on a variable, for example to change it from false to true it has to redraw the menu. When it redraws the menu it just resets and goes back to the top. Is there and way to set how far it should be scrolled? There is a screen recording attached below:
-
-
Hi guys, I recently edited some
metadata.json
s to fix some version numbers and add screenshots to some of the apps. When I was finished I checked my own fork of the app loader, but the app list was corrupted probably due to some typo. Is there any way to see where the error came from because it would be hard to check all themetadata.json
s I edited. I don't see any errors in the developer tools on chrome. -
-
-
-
I am using the
e.showScroller
function to make a scrollable menu for bangle.js 2, but I ran into an issue. When I scroll up whatever I am drawing in the menu draws into the widget area. I can redraw the widgets every time, but it makes everything really laggy and not responsive. A screen recording is attached. Here is my code:Bangle.loadWidgets(); Bangle.drawWidgets(); function RectRnd(x1,y1,x2,y2,r) { pp = []; pp.push.apply(pp,g.quadraticBezier([x2-r,y1, x2,y1,x2,y1+r])); pp.push.apply(pp,g.quadraticBezier([x2,y2-r,x2,y2,x2-r,y2])); pp.push.apply(pp,g.quadraticBezier([x1+r,y2,x1,y2,x1,y2-r])); pp.push.apply(pp,g.quadraticBezier([x1,y1+r,x1,y1,x1+r,y1])); return pp; } function fillRectRnd(x1,y1,x2,y2,r,c) { g.setColor(c); g.fillPoly(RectRnd(x1,y1,x2,y2,r),1); g.setColor(255,255,255); } function drawRectRnd(x1,y1,x2,y2,r,c) { g.setColor(c); g.drawPoly(RectRnd(x1,y1,x2,y2,r),1); g.setColor(255,255,255); } E.showScroller({ h : 40, c : 8, draw : (idx, r) => { g.reset().setFontAlign(0,-1,0).setFont('12x20'); fillRectRnd(r.x,r.y,r.x+173,r.y+20,7,g.theme.bg-20); }, select : (idx) => console.log("You selected ", idx) });
Is there any way to fix this?
-
-
This is the code I use for rounded rects in my programs:
function RectRnd(x1,y1,x2,y2,r) { pp = []; pp.push.apply(pp,g.quadraticBezier([x2-r,y1, x2,y1,x2,y1+r])); pp.push.apply(pp,g.quadraticBezier([x2,y2-r,x2,y2,x2-r,y2])); pp.push.apply(pp,g.quadraticBezier([x1+r,y2,x1,y2,x1,y2-r])); pp.push.apply(pp,g.quadraticBezier([x1,y1+r,x1,y1,x1+r,y1])); return pp; } function fillRectRnd(x1,y1,x2,y2,r,c) { g.setColor(c); g.fillPoly(RectRnd(x1,y1,x2,y2,r),1); g.setColor(255,255,255); } function drawRectRnd(x1,y1,x2,y2,r,c) { g.setColor(c); g.drawPoly(RectRnd(x1,y1,x2,y2,r),1); g.setColor(255,255,255); }
Is there any final decision on this?