You are reading a single comment by @andres.santos and its replies. Click here to read the full conversation.
  • Hello guys, I recently bought from ebay two Matrix Leds based on the Max7219, when I connect them to the espruino it powers everything up and then using the web IDE I send this code to the espruino:

    SPI2.setup({mosi:B15, sck:B13});
    var disp = require("MAX7219").connect(SPI2,B14);
    
    
    setTimeout(function() {
      disp.raw([1,2,4,8,16,32,64,128]); // you can set the LEDs directly
    }, 1000);
    
    setTimeout(function() {
      var n = 0;
      setInterval(function() {
        disp.set(n++); // it can display integers
        disp.intensity(0.5+0.5*Math.sin(n*0.2)); // you set set intensity
      }, 100);
    }, 2000);
    

    But nothing happens, any idea?

About