If you save an image file as a 5x5 pixel 8 bit RGB RAW file (maybe use ImageMagick and a command like convert -size 5x5 file1.png output.rgb) you could then load that file into the above webpage and it'll convert it to a string, which you can then put into the Web IDE and can use buffer.set(myString)... Although having said that you'll have to reverse every other row :)
You may also be able to create an 'ArrayBuffer' graphics instance without the callbacks. RGB123 works in pretty much exactly the same way (a zig-zag of WS2811s) so the Graphics library should handle it quite well: http://www.espruino.com/RGB123
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.
Hi - yes, I think that'd be really good. Even better if you can get some low-res images displayed :)
You may find this helpful: http://www.espruino.com/File+Converter (until 1v56 you'll have to ignore the base64 version though)
If you save an image file as a 5x5 pixel 8 bit RGB RAW file (maybe use ImageMagick and a command like
convert -size 5x5 file1.png output.rgb
) you could then load that file into the above webpage and it'll convert it to a string, which you can then put into the Web IDE and can usebuffer.set(myString)
... Although having said that you'll have to reverse every other row :)You may also be able to create an 'ArrayBuffer' graphics instance without the callbacks. RGB123 works in pretty much exactly the same way (a zig-zag of WS2811s) so the Graphics library should handle it quite well: http://www.espruino.com/RGB123