Avatar for Mark_M

Mark_M

Member since Oct 2021 • Last active Apr 2022
  • 10 conversations
  • 132 comments

Most recent activity

  • in Bangle.js
    Avatar for Mark_M

    Accuracy also depends on an antenna, and even on a ground plate.
    The 2.5m accuracy stated in a chip's docs usually presumes a good (active) antenna, good ground plate and good weather and sky conditions.
    The antenna in the watch is very little, passive, and there is no ground plate.
    So, we should not expect, the accuracy will always be high.
    I am working on speedometer app, it uses Doppler velocity from GPS fixes (rather then calculates speed from coordinates). Though it can detect correct speed (compared to car speed), very often time lag can be up to minute. Like, I am driving already 40 km/h, but the watch still shows 10 km/h, then after ~40 sec, it finally shows 40 km/h.
    This is kind of frustrating, but I understand why it cannot be precise enough.
    I am thinking about to use a separate GPS unit with bigger antenna, and use the watch as a display only, sending data via Bluetooth.

  • in Bangle.js
    Avatar for Mark_M

    Ok. I see. I thought the scrolling is done as a whole bitmap shifting.
    Thanks for the example.

  • in Bangle.js
    Avatar for Mark_M

    @Gordon,

    not totally different. Currently I just want to draw a color box on top of an "Color" item.
    That shows a current color, and calls a submenu that allows user to select a color from list.

    If a rectangle x1,y1,x2,y2 of the item will be passed into the callback it should not break.
    The alternate menu system has to be compatible with the standard one anyway. It also should support this callback, same way as it should support format() callback.

  • in Bangle.js
    Avatar for Mark_M

    I have Ubuntu 18.04.6 LTS. No problems at all.

  • in Bangle.js
    Avatar for Mark_M

    @Mark_M no, I haven't had time for that. Sorry, but I forget why this was needed in the end? Since you can feed images back from the format function you can display a bunch of stuff through that pretty easily and cleanly.

    @Gordon,
    The need was to allow to draw custom vector graphic on top of the item. Like frames, colored bars, or circles, or whatever.
    I do not disagree that it is possible to use format, but it does not look convenient for dynamic vector graphics. Does it mean I need to create a bitmap, draw into that, then pass it to format() as a string? It looks quite tricky.

  • in Bangle.js
    Avatar for Mark_M

    Hi Gordon, did you have a chance to add a callback after the item is rendered?
    Something like
    afterdraw : function(idx, item, rect)

    not sure if menu needs to be passed. In previous system there was a selected item stored in header item[0]. If something will be stored in item[0], the whole menu or just this item[0] should be passed as well.
    afterdraw : function(idx, item, rect, menu)

  • in Bangle.js
    Avatar for Mark_M

    That looks like a good idea, but I'm a bit concerned it's adding quite a lot of extra code for something that isn't used that much (and what if someone wants to specify something that's not one of those 8 colors?).

    Yes, that is right.
    May be then it will be helpful just to add a "drawItem" callback? with (idx, item, x1,y1,x2,y2) params. There one can do whatever is needed after the item is rendered a standard way.

  • in Bangle.js
    Avatar for Mark_M

    I've added Color item and submenu.

  • in Bangle.js
    Avatar for Mark_M

    Looks neat! Numbers edit is perfect.

    In emulator I cannot feel a feedback like buzz (BTW can buzz be added to emulator? as a sound or as a some visual). Will load this to watch.
    May be it needs a highlight to know which item I will tap.

    Editing for special types, like for time, date and color would be nice to have.
    Also callbacks that allow to custize, like a callback like itemDraw(x1,y1,x2,y2) to customize drawing. May be it is already there, I just do not know.

    I've added this to current settings menu. Having issues with Git to merge and create pull request. But it looks like, if we go with the new menu, the modification of the old one does not make a sense.

  • in Bangle.js
    Avatar for Mark_M

    this is for Linux

Actions