You are reading a single comment by @navas and its replies. Click here to read the full conversation.
  • 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

    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
    
About

Avatar for navas @navas started