var SPI2 = new SPI();
SPI2.setup({mosi:D0, sck:D2});
var disp = require("MAX7219").connect(SPI2, D3);
var g = Graphics.createArrayBuffer(8,8,1); // Create graphics
g.flip = function() { disp.raw(g.buffer); }; // To send to the display
g.drawString("Hi");
g.flip(); // update what's on the display
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.
Ok, I figured 1v91 doesn't have Graphics library inbuilt, so I had to use 1v86.171.
Now, the following example doesn't display "Hi" rather it displays some weird characters on the display. Any idea?
https://goo.gl/photos/8qLAqh571H3u8rTH6