Avatar for Abhigkar


Member since Dec 2017 • Last active Jun 2020
  • 17 conversations

Love Esp

Most recent activity

  • in Bangle.js
    Avatar for Abhigkar

    @FransM, Not sure if this will help you. But worth to check post #8.

    Also check it out this

  • in Bangle.js
    Avatar for Abhigkar

    @PaulC @brainfart-be, your work is awesome. I will surly try!!. Thanks for posting..

  • in Other Boards
    Avatar for Abhigkar

    are you stuck quarantined as we are for the next few weeks

    Yes, I am, as in lockdown situation, I am sitting home all the time.

    should we need to comm back-n-forth quickly

    Sounds like a plan with only catch that I don't check forum posts regularly. Would miss the notification. Gitter mobile app push a message notification as someone will messaged me. But I am good both week and weekend options.

    As this is posted beneath other boards, may I inquire which one
    yes of course!! This is cheap chinese fitness tracker, with

    1. nrf52832
    2. with stock bootloader (SDK11 SoftDevice v 132 v2.0.0)
    3. KX022 Accelerator , Si114x HR, IQS263 touch screen sensor, 8 Mbit SPI flash, 128x64 OLED

    I am able to flash espruino latest (build on my own, for new board file, and nordic SDK11 libs), a github repository is setup (which is not in a good shape yet) to protect ongoing work.

    I also have BangleJS to compare the compiler result on need basis.

  • in Other Boards
    Avatar for Abhigkar

    Thanks @Robin for the response. My Tz is UK BST (GMT+1). I am also available on gitter, if you feel comfortable..

  • in Other Boards
    Avatar for Abhigkar

    I am facing a strange behavior that I am not sure if it is expected or my code is wrong.

    I am doing a simple setWatch on a Pin which is toggling very fast by the IQS263.

    var countWatch=0;
    var initWatch = setWatch(function(e) { 
      if( countWatch >= 300 ) clearWatch(initWatch);
      }, D17, { repeat:true, edge:'falling',data:D17  }

    I am getting an error in between

    Prompt not detected - upload failed. Trying to recover..

    Execution Interrupted during event processing.
    ERROR: Ctrl-C while processing interval - removing it.
    Execution Interrupted during event processing.

    Am I doing something wrong here?
    My need to perform I2C read from the sensor when D17 is low.

    Sometimes I also got the error like:

    New interpreter error: FIFO_FULL


    New interpreter error: CALLBACK

    Often device is also gets reset loosing all RAM content

  • in Interfacing
    Avatar for Abhigkar

    Just one more thing about firing the events from the lib, like Bangle.on('mag'...)

    I guess events are triggering "type" : "idle", where the associated 'C' method [like jswrap_puck_idle(), jswrap_banglejs_idle() ]checks if any event is available once every time around the event loop and call * jsiQueueObjectCallbacks();*.

    Or there is something more or else that I am missing.

  • in Interfacing
    Avatar for Abhigkar

    Thanks @Gordon for your comment. This is what I am looking for.

  • in Interfacing
    Avatar for Abhigkar

    What is the significance of the below jswrapper connect section, with type = init. Although Event and static method definitions are pretty much fine.

    I am not able to find much information but this Espruino documentation page

    This part looks like comment only. But there is a nice script in the background, scanning for comments like this. As we can see, there is some data in JSON format. And this is translated into one more C-file. At the end, this generated file is the connection between Javascript file and the compiled C-function.
    When and from where it will be called and

      "type" : "init",
      "generate" : "jswrap_xxx_init"

    EDIT: Similarly Type: kill/idle