Testing with http://www.espruino.com/binaries/git/commit_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_end":134385804,"flash_code_start":134443008,"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_end":134385804,"flash_code_start":134443008,"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_end":134385804,"flash_code_start":134443008,"flash_length":262144}
Note where a " has been replaced with a g.
@DrAzzy started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Testing with http://www.espruino.com/binaries/git/commit_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)
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.
Also, I've been occasionally seeing the wrong character come through in text sent from the espruino. For example:
Note where a " has been replaced with a g.