Wykorzystany sprzęt
- arduino UNO
- matryca 8x8 1588as /wspólna katoda/
- układ max 7219
złożyłem układ wgrałem "program" który ma zapalić w czterech rogach diodę a świeci się cały wyświetlacz
Co robię źle???
KOD:
#include <LedControl.h>
LedControl matrix = LedControl(13, 11, 12, 1);
void setup() {
// przełącza MAX7219 w tryb normalnej pracy
matrix.shutdown(0, false);
// ustawia jasność świecenia 0-15
matrix.setIntensity(0, 4);
// gasi wszystkie diody w module 0-7
matrix.clearDisplay(0);
}
void loop() {
matrix.setLed(0, 0, 0, true);
matrix.setLed(0, 0, 7, true);
matrix.setLed(0, 7, 0, true);
matrix.setLed(0, 7, 7, true);
}
- arduino UNO
- matryca 8x8 1588as /wspólna katoda/
- układ max 7219
złożyłem układ wgrałem "program" który ma zapalić w czterech rogach diodę a świeci się cały wyświetlacz
Co robię źle???
KOD:
#include <LedControl.h>
LedControl matrix = LedControl(13, 11, 12, 1);
void setup() {
// przełącza MAX7219 w tryb normalnej pracy
matrix.shutdown(0, false);
// ustawia jasność świecenia 0-15
matrix.setIntensity(0, 4);
// gasi wszystkie diody w module 0-7
matrix.clearDisplay(0);
}
void loop() {
matrix.setLed(0, 0, 0, true);
matrix.setLed(0, 0, 7, true);
matrix.setLed(0, 7, 0, true);
matrix.setLed(0, 7, 7, true);
}