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);
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.
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:
But nothing happens, any idea?