/************************************************************************************************* PROGRAMMINFO ************************************************************************************************** Funktion: 2 x MAX72xx LED-Ansteuerung ************************************************************************************************** Version: 25.06.2023 ************************************************************************************************** Board: NANO ************************************************************************************************** Libraries: https://github.com/espressif/arduino-esp32/tree/master/libraries C:\Users\User\Documents\Arduino D:\gittemp\Arduino II\A156_Wetterdaten_V3 ************************************************************************************************** C++ Arduino IDE V1.8.19 ************************************************************************************************** Einstellungen: https://dl.espressif.com/dl/package_esp32_index.json http://dan.drown.org/stm32duino/package_STM32duino_index.json http://arduino.esp8266.com/stable/package_esp8266com_index.json **************************************************************************************************/ #include "LedControl.h" LedControl lc884=LedControl(11,13,10,4); // DIN, CLK, CS, 4xMAX72xx unsigned long interval=3000; // the time we need to wait unsigned long previousMillis=0; // millis() returns an unsigned long. void setup() { for(int i=0;i<2;i++){ lc884.shutdown(i,false); lc884.setIntensity(i,8); lc884.clearDisplay(i); } } void loop() { lc884.setRow(0,0,B00000010); //0x02 lc884.setRow(0,1,B00000110); lc884.setRow(0,2,B00001010); lc884.setRow(0,3,B00010010); lc884.setRow(0,4,B00101010); lc884.setRow(0,5,B01011010); lc884.setRow(0,6,B01000010); lc884.setRow(0,7,B00111100); lc884.setRow(1,0,B01000000); lc884.setRow(1,1,B01100000); lc884.setRow(1,2,B01010000); lc884.setRow(1,3,B01001000); lc884.setRow(1,4,B01010100); lc884.setRow(1,5,B01011010); lc884.setRow(1,6,B01000010); lc884.setRow(1,7,B00111100); /* delay(3000); lc884.setRow(0,0,B00111100); lc884.setRow(0,1,B01000010); lc884.setRow(0,2,B01000010); lc884.setRow(0,3,B01000010); lc884.setRow(0,4,B01011010); lc884.setRow(0,5,B01011010); lc884.setRow(0,6,B01000010); lc884.setRow(0,7,B00111100); lc884.setRow(1,0,B00111100); lc884.setRow(1,1,B01000010); lc884.setRow(1,2,B01000010); lc884.setRow(1,3,B01000010); lc884.setRow(1,4,B01011010); lc884.setRow(1,5,B01011010); lc884.setRow(1,6,B01000010); lc884.setRow(1,7,B00111100); delay(1000); */ }