Great! Did you figure out how to sort the ordering?
Something like this should do it...
SPI2.setup({mosi:B15, sck:B13}); var disp = require("MAX7219").connect(SPI2, B14, 8); var gdisp = Graphics.createArrayBuffer(64, 8, 1); var g = Graphics.createArrayBuffer(32, 16, 1, {msb:true}); g.flip = function() { var im = new Uint8Array(35); im.set([32,8,1]); im.set(new Uint8Array(g.buffer), 3); gdisp.clear(); gdisp.drawImage(im,0,0); im.set(new Uint8Array(g.buffer,32), 3); gdisp.drawImage(im,32,0); disp.raw(gdisp.buffer); }; g.drawLine(0,0,32,16); g.flip();
@Gordon 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.
Great! Did you figure out how to sort the ordering?
Something like this should do it...