Menu

anyone know why the second max7219 doesnt display anything?
📰

anyone know why the second max7219 doesnt display anything?

Reading 0:00
15s threshold
anyone know why the second max7219 doesnt display anything?

code:

#include <LedControl.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Arduino.h>
#define CLK_PIN 10
#define CS_PIN 11
#define DATA_PIN 12
LedControl lc = LedControl(DATA_PIN, CLK_PIN, CS_PIN, 8);

void setup() {
lc.shutdown(0, false);
lc.setIntensity(0, 0); // 0 = low; 8 = high
}

void loop() {
lc.setRow(0, 0, 0b00011000);
// this should change the second max but doesnt
lc.setRow(1, 1, 0b11111111);
delay(100);
}

edit:
adding
lc.shutdown(1, false); lc.setIntensity(1, 8);
fixed it! (also adressing the second max module)

submitted by /u/raserO1
[link] [comments]