user156311
Member since Aug 2023 • Last active Oct 2024Most recent activity
-
- 4 comments
- 838 views
-
-
- 3 comments
- 921 views
-
I'm working on vector map application for Bangle.js -- code is available here: https://github.com/espruino/BangleApps/pull/2981
But I'm quickly running into limits of hardware, system limits, and limits of my knowledge of JavaScript. Help is wanted.
Is there a way to do some kind of multitasking? I guess "abort expensive computation if user action is detected" would already be a huge improvement for me. Drawing map takes seconds to minute, aborting the draw when user requests move would be good.
-
Does anyone have hints for using espruino on Linux?
I can get it to create a window and draw into it
g = Graphics.createSDL(1024, 768, 8); g.setColor(1,1,1).setFont("Vector",25); g.setFontAlign(0,0); g.drawString("SpaceWeaver", 85,35);
but then application exits, so text is only visible for millisecond or so. Does anyone have example of using createSDL? Ideally I'd like to handle input events, too, but Bangle.on() does not seem to be available on Linux.
Thanks for setInterval() hint. I have done some hacks, and input event handling does not look that hard.
Note in createSDL documentation that corresponding input does not exist would be welcome; it is not obvious from documentation and it took me a while to figure out.
If you have pointer to that CLI app, that would be nice. Quick search did not find anything.