Avatar for Mrbbp

Mrbbp

Member since Mar 2017 • Last active Jul 2017
  • 7 conversations
  • 43 comments

I'm newb with espruino, not with arduino, not with js...
But i'm not a coding ninja

Most recent activity

    • 34 comments
    • 372 views
  • in Interfacing
    Avatar for Mrbbp

    I've bought it...😎
    I'm in vacation til mid august...
    I'll try when back home

  • in JavaScript
    Avatar for Mrbbp

    @Gordon oups, you're rigth.
    It's a bad cut/past.
    I've modifying the code
    Thanks

    • 5 comments
    • 128 views
  • in JavaScript
    Avatar for Mrbbp

    I've done this...
    i'm waiting the postman with the 7x1 display for testing... (monday or later)

      g = Graphics.createArrayBuffer(8,8,1);
      g.setFont4x6();
      g.drawString(texte,compteur,0);
      a = new Uint8Array(g.buffer);
      // ecran 1x7
      Serial1.write([0x80,0x89,Adress],a[0],[0­x8F]);
      // ecran 7x7
      Serial1.write([0x80,0x87,Adress2],a[1],a­[2],a[3],a[4],a[5],a[6],a[7],[0x8F]);
    
  • in JavaScript
    Avatar for Mrbbp

    Hello,

    i'm a bit newb with arrayBuffer...
    i use a flipdot display compose with 1 line of 7 points and a block of 7 lines of 7 points.
    I need an array of 8x8 to drawString(t,x,y)

    var g = Graphics.createArrayBuffer(8,8,1);
    

    How to access of the data stored in the first line of the array?
    g[0] ?
    and the rest of the buffer?

    sorry for this basic question but i don't know how to use this object.

  • in Interfacing
    Avatar for Mrbbp

    The crash is not an espruino issue, it's an usb issue, it produce too sometime with arduino...
    Last week i have to update firmware and install my code on 8 Picos.... I've got crashs (with automatic reboot and message) 4 time 😗. For simple and repetitive task, reboot had made it long and stressfull.

    For the upload problem, i don't know, i've discovered the reset() instruction and it seems to resolve the problem (when code use short setInterval()). You're probably right, i just change my process for upload with in first step, a reset(). Have to check

  • in Interfacing
    Avatar for Mrbbp

    An other issue with the standart 1v92 firmware.
    with the quick setInterval() or serial1.write()
    i'm unable to upload code... upload stall at a point (variable). Have to unplug and plug pico board (1.4b) in bootloader mode and reinstall firmware.

    with your custom firmware it always upload to board
    huge update for me : plug/unplug usb board crash my old macbook Pro (17 mid 2009) -> 1 time/4 unplug :/

    thanks

    é.

  • in Interfacing
    Avatar for Mrbbp

    @Gordon

    timing test

      t = getTime();
      g.setFontDennis8();
      g.drawString(texte,compteur,0);
      console.log("Draw took ",getTime()-t);
    

    1v92 FIRMWARE
    with custom font like setFontDennis8 : 0,244
    with custom font simplified : 0,239
    with custom font like setFontDennis8 + E.toString() : 0,154
    with custom font simplifed + E.toString() : 0,155

    1v92 CUSTOM FIRMWARE
    with custom font like setFontDennis8 : 0,106
    with custom font simplified : 0,106
    with custom font like setFontDennis8+ E.toString(atob) + : 0,094
    with custom font simplified + E.toString(): 0,094

    therefor best result with:
    . custom firmware
    . E.toString()
    . nothing more with simplified font (only usefull char design)

  • in Interfacing
    Avatar for Mrbbp

    and yes @Gordon, it's a long text and it is exactly why i work with Espruino,

    . more ram
    . a better api for string manipulation (than arduino) = js,
    . a small form factor!
    . easy to program

    :)

Actions