Avatar for yngv126399

yngv126399

Member since Mar 2021 • Last active Jun 2022
  • 7 conversations
  • 108 comments

Most recent activity

  • in General
    Avatar for yngv126399

    wish I could "like" this message.... oh! wait.....

  • in Projects
    Avatar for yngv126399

    This is a boutique "oddity" gift. There's a market for that....

    • 3 comments
    • 214 views
  • in Puck.js, Pixl.js and MDBT42
    Avatar for yngv126399

    Maybe I could even have a wifi-connection in it.
    Well, there goes your battery! ;-) Actually I think the Puck would be perfect for this. Press the button to start BLE, download to phone, back to low power data collection. And adding the humidity sensor shouldn't affect the footprint.

  • in Bangle.js
    Avatar for yngv126399

    I've narrowed down a bug to when I use Esprima's Mangle to shorten variable names (other minification options don't generate the error).

    I'm seeing an error in the Bangle emulator when I execute this:

    // works fine
    g.clear();
    
    function dothis() {
      g.clear();
    }
    
    function test(one, two, three, four, five) {
      let arrTmp = 0; //new Uint8Array(12);
      for(let i=0; i<1; i++) {}
      
      // fails
      g.clear();
      dothis();
    }
    
    test();
    

    I'm getting this error:

    >Uncaught Error: Function "clear" not found!
     at line 1 col 23
    let a=0;for(let g=0;g<1;g++);g.clear(),dothis()
                                   ^
    in function "test" called from line 1 col 92
    ...(),dothis()}g.clear(),test()
                                  ^
    

    You can see that it changed the loop variable to 'g' , which should still be a local variable, but it clearly affects Bangle's 'g'.

    However, if you do any one of the following, the error goes away and the Bangle 'g' is fine:

    • if you comment out g.clear() and use the "dothis()" function instead
    • if you comment out the "let arrTmp" assignment
    • if you comment out the empty for loop
    • if you reduce the argument list to 4 items

    Just thought I'd share; not sure whether this is an Esprima bug, or an interpreter bug (a "let g=" within a for loop should be its own scope and not interfere with global context?)

  • in Bangle.js
    Avatar for yngv126399

    you'll need a buffer for each moving part (which could eat a lot of memory on Bangle1), set timeouts to loop through each "frame", calculating coordinates to copy from buffer to the lcd, and you may see some lag & jitter as you're asking the little cpu to do a lot of work (assuming Bangle1 again).

    Bangle2 is more capable of this and could probably handle the ones you've shared fine. which watch are you targeting?

  • in Porting to new Devices
    Avatar for yngv126399

    you flashed a hex file intended for a different board. The Rock is an nrf52840, which has more SRAM, flash and thus different addresses for DFU entry points, etc. So your board is in an unknown state, you'll need a full build of Magic3 with bootloader and soft device as a .hex file. Are you set up to do your own builds?

    BTW: the Rock is not an officially supported Espruino board, you won't find any firmware for it here.

  • in Bangle.js
    Avatar for yngv126399

    Agreed.... on both counts!

  • in Bangle.js
    Avatar for yngv126399

    with a combination of online meeting tools / screen sharing, and the Web IDE relay, you can probably still teach them remotely?

  • in Bangle.js
    Avatar for yngv126399

    A survey would indeed help shape JS3 into what most current users would like to see. And having the older alternatives is good for those who want the specialty items (like the barometer, or full color LCD). It depends on what Bangle's intended use really is.. a smart watch for hackers, or a hackable smart watch (they sound similar, but they're different!)

    Myself, I am into the visual, and would enjoy the screen to be physically larger, hopefully without making the case TOO much larger. That would help touch screen behaviour as well. With more pixels (240x240 or greater) one can forgive the lack of colors (as anti-aliasing would be less necessary). I found the 64 color screen on the DK08 to be fantastic, if a tad too small and (sadly) low contrast (watches must be visible INDOORS on cloudy, dark Canadian "days"!)

    That said, I also want to thank Gordon (and team!) for the fantastic work they've done and continue to do. I will certainly be a Kickstarter when the BJ3 is ready.

Actions