SPI2.setup({mosi:B15, sck:B13});
var disp = require("MAX7219").connect(SPI2, B14, 8);
var g = Graphics.createArrayBuffer(64, 8, 1);
g.flip = function() { disp.raw(g.buffer); };
g.drawString("Hello this is a very long string of text");
g.flip();
The issue may be that Espruino isn't aware that you want a 4x2 stack of matrices, and just assumes it is 8x1. I don't see anything in the module that would be limited to just 4 matrices.
If the code above does work then it's not a big problem - it's relatively easy to add some code that will rearrange things into the format that you want.
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.
Does this work:
The issue may be that Espruino isn't aware that you want a 4x2 stack of matrices, and just assumes it is 8x1. I don't see anything in the module that would be limited to just 4 matrices.
If the code above does work then it's not a big problem - it's relatively easy to add some code that will rearrange things into the format that you want.