I would like to connect the Max7221 to some analog pins due to lack of other pins. Reading the datasheet and following articles, this should be possible, but it doesn't work for some reason:
/playground/Main/MAX72XXHardware
/en/Tutorial/AnalogInputPins
I have connected:
Data IN to pin 16
Load to pin 15
Clock to pin 14
Trying different things like making pins high and low, changing pins to in- and output didn't make it work. The print with LEDs does work when I connect it to normal pins (like 8, 9 and 10).
Thanks a lot for any hints.
Johan
-- source --
#include "LedControl.h"
int pin1 = 14, pin2 = 15, pin3 = 16;
LedControl lc = LedControl(pin3, pin2, pin1, 1);
void setup() {
lc.shutdown(0, false);
lc.setIntensity(0,15);
Serial.begin(9600);
}
void loop() {
int i = 99;
printNumber(i); // some method that lights up the display
delay(100);
}