Avatar for PaddeK


Member since Mar 2017 • Last active Mar 2018
  • 2 conversations

Most recent activity

  • in Pico / Wifi / Original Espruino
    Avatar for PaddeK

    This would be my guess too, since its hardware related. Maybe you could add some layer on top of it, like you mentioned with polling, but i imagine this would come at a hefty price speedwise.

  • in Pico / Wifi / Original Espruino
    Avatar for PaddeK

    My understanding was PA.1 and PA.2 is fine but not PA.1 and PB.1 . Thats how i understand the 2. Note in the setWatch reference.

  • in News
    Avatar for PaddeK

    So many things to play with and so little time.
    Thanks for all the improvements!

  • in News
    Avatar for PaddeK

    Great thanks! I am so exited about this.. i am used to ES6 and it allows for so much cleaner and shorter code :)

  • in News
    Avatar for PaddeK

    I miss destructuring and rest + spread in the list. Or are they implemented already and i missed it?

    Thanks for giving the community this much influence it is really appreciated!

  • Avatar for PaddeK

    Just as a update, Particle is in a presale for their nrf52840 based boards.
    Expected shipping starts in July 2018.
    Another interesting thing is the formfactor.. they hop on to the adafruit feather train.. this could be a good choice for the next espruino generation too.

  • in General
    Avatar for PaddeK

    Hmm could be.. my experience with i2c devices is limited. I hope he tries it though because its so much shorter especially the base64 variation :)

  • in General
    Avatar for PaddeK

    Try to replace

      this.w(0xFF, 0x01);
      this.w(0x00, 0x00);
      this.w(0xFF, 0x00);
      this.w(0x09, 0x00);
      this.w(0x10, 0x00);
      this.w(0x11, 0x00);
      this.w(0x24, 0x01);
      this.w(0x25, 0xFF);
      this.w(0x75, 0x00);
      this.w(0xFF, 0x01);
      this.w(0x4E, 0x2C);
      this.w(0x48, 0x00);
      this.w(0x30, 0x20);
      this.w(0xFF, 0x00);
      this.w(0x30, 0x09);
      this.w(0x54, 0x00);
      this.w(0x31, 0x04);
      this.w(0x32, 0x03);
      this.w(0x40, 0x83);
      this.w(0x46, 0x25);
      this.w(0x60, 0x00);
      this.w(0x27, 0x00);
      this.w(0x50, 0x06);
      this.w(0x51, 0x00);
      this.w(0x52, 0x96);
      this.w(0x56, 0x08);
      this.w(0x57, 0x30);
      this.w(0x61, 0x00);
      this.w(0x62, 0x00);
      this.w(0x64, 0x00);
      this.w(0x65, 0x00);
      this.w(0x66, 0xA0);
      this.w(0xFF, 0x01);
      this.w(0x22, 0x32);
      this.w(0x47, 0x14);
      this.w(0x49, 0xFF);
      this.w(0x4A, 0x00);
      this.w(0xFF, 0x00);
      this.w(0x7A, 0x0A);
      this.w(0x7B, 0x00);
      this.w(0x78, 0x21);
      this.w(0xFF, 0x01);
      this.w(0x23, 0x34);
      this.w(0x42, 0x00);
      this.w(0x44, 0xFF);
      this.w(0x45, 0x26);
      this.w(0x46, 0x05);
      this.w(0x40, 0x40);
      this.w(0x0E, 0x06);
      this.w(0x20, 0x1A);
      this.w(0x43, 0x40);
      this.w(0xFF, 0x00);
      this.w(0x34, 0x03);
      this.w(0x35, 0x44);
      this.w(0xFF, 0x01);
      this.w(0x31, 0x04);
      this.w(0x4B, 0x09);
      this.w(0x4C, 0x05);
      this.w(0x4D, 0x04);
      this.w(0xFF, 0x00);
      this.w(0x44, 0x00);
      this.w(0x45, 0x20);
      this.w(0x47, 0x08);
      this.w(0x48, 0x28);
      this.w(0x67, 0x00);
      this.w(0x70, 0x04);
      this.w(0x71, 0x01);
      this.w(0x72, 0xFE);
      this.w(0x76, 0x00);
      this.w(0x77, 0x00);
      this.w(0xFF, 0x01);
      this.w(0x0D, 0x01);
      this.w(0xFF, 0x00);
      this.w(0x80, 0x01);
      this.w(0x01, 0xF8);
      this.w(0xFF, 0x01);
      this.w(0x8E, 0x01);
      this.w(0x00, 0x01);
      this.w(0xFF, 0x00);
      this.w(0x80, 0x00);


    this.i2c.writeTo(this.ad, new Uint8Array([
        0xFF, 0x01, 0x00, 0x00, 0xFF, 0x00, 0x09, 0x00, 0x10, 0x00, 0x11, 0x00, 
        0x24, 0x01, 0x25, 0xFF, 0x75, 0x00, 0xFF, 0x01, 0x4E, 0x2C, 0x48, 0x00,
        0x30, 0x20, 0xFF, 0x00, 0x30, 0x09, 0x54, 0x00, 0x31, 0x04, 0x32, 0x03,
        0x40, 0x83, 0x46, 0x25, 0x60, 0x00, 0x27, 0x00, 0x50, 0x06, 0x51, 0x00,
        0x52, 0x96, 0x56, 0x08, 0x57, 0x30, 0x61, 0x00, 0x62, 0x00, 0x64, 0x00,
        0x65, 0x00, 0x66, 0xA0, 0xFF, 0x01, 0x22, 0x32, 0x47, 0x14, 0x49, 0xFF,
        0x4A, 0x00, 0xFF, 0x00, 0x7A, 0x0A, 0x7B, 0x00, 0x78, 0x21, 0xFF, 0x01,
        0x23, 0x34, 0x42, 0x00, 0x44, 0xFF, 0x45, 0x26, 0x46, 0x05, 0x40, 0x40,
        0x0E, 0x06, 0x20, 0x1A, 0x43, 0x40, 0xFF, 0x00, 0x34, 0x03, 0x35, 0x44,
        0xFF, 0x01, 0x31, 0x04, 0x4B, 0x09, 0x4C, 0x05, 0x4D, 0x04, 0xFF, 0x00,
        0x44, 0x00, 0x45, 0x20, 0x47, 0x08, 0x48, 0x28, 0x67, 0x00, 0x70, 0x04,
        0x71, 0x01, 0x72, 0xFE, 0x76, 0x00, 0x77, 0x00, 0xFF, 0x01, 0x0D, 0x01,
        0xFF, 0x00, 0x80, 0x01, 0x01, 0xF8, 0xFF, 0x01, 0x8E, 0x01, 0x00, 0x01,
        0xFF, 0x00, 0x80, 0x00

    Or even

  • in Projects
    Avatar for PaddeK

    As soon as i got some spare time i will pick up where i left and see if this brings the hoped solution.

  • in General
    Avatar for PaddeK

    Yes that could explain it.. i guess someone with the sensor at hand will find out for us :)