You are reading a single comment by @DrAzzy and its replies. Click here to read the full conversation.
  • Testing with http://www.espruino.com/binaries/git/com­mit_date/2014-04-03%2015:05:30%20+0100/ binary (wiznet version - I can't connect to normal version over USB - I get a "this device has malfunctioned" when I plug it in, and it's not visible to IDE)

    Using the above code, with the PCD8544.js from the website (that would be this version, to be perfectly clear)

          spi.send(new Uint8Array(this.buffer,i*84,84+2*(i<5)),­ ce);
    

    There is a memory leak, though.

    Edit: Tracked down the memory leak - maybe this isn't new in v60, though. Loses 2 memory units every time it changes font.

    >process.memory();
    ={"free":558,"usage":1242,"total":1800,"­history":378,"stackEndAddress":536909768­,"flash_start":134217728,"flash_binary_e­nd":134385804,"flash_code_start":1344430­08,"flash_length":262144}
    >g.setFontBitmap();
    =undefined
    >g.setFont8x12();  
    =undefined
    >process.memory()  ;
    ={"free":554,"usage":1246,"total":1800,"­history":378,"stackEndAddress":536909768­,"flash_start":134217728,"flash_binary_e­nd":134385804,"flash_code_start":1344430­08,"flash_length":262144}
    >
    

    Also, I've been occasionally seeing the wrong character come through in text sent from the espruino. For example:

    >process.memory();
    ={"free":678,"usage":1122,"total":1800,"­history":575,"stackEndAddress":536909768­,gflash_start":134217728,"flash_binary_e­nd":134385804,"flash_code_start":1344430­08,"flash_length":262144}
    

    Note where a " has been replaced with a g.

About

Avatar for DrAzzy @DrAzzy started