/************************************************************************************************* PROGRAMMINFO ************************************************************************************************** Funktion: 64-LED-Matrix-Screen-Modul - Testprogramm ************************************************************************************************** Version: 23.02.2022 ************************************************************************************************** Board: NANO V3 ************************************************************************************************** C++ Arduino IDE V1.8.13 ************************************************************************************************** Einstellungen: https://dl.espressif.com/dl/package_esp32_index.json http://dan.drown.org/stm32duino/package_STM32duino_index.json https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json ************************************************************************************************** Librarys - WiFi.h V0.16.1 ************************************************************************************************** **************************************************************************************************/ #include #define HARDWARE_TYPE MD_MAX72XX::FC16_HW #define MAX_DEVICES 1 #define CLK_PIN 13 // or SCK #define DATA_PIN 11 // or MOSI #define CS_PIN 10 // or SS #define DELAYTIME 100 // in milliseconds MD_MAX72XX mx = MD_MAX72XX(HARDWARE_TYPE, CS_PIN, MAX_DEVICES); void scrollText(char *p) { uint8_t charWidth; uint8_t cBuf[8]; mx.clear(); while (*p != '\0') { charWidth = mx.getChar(*p++, sizeof(cBuf) / sizeof(cBuf[0]), cBuf); for (uint8_t i=0; i<=charWidth; i++) { mx.transform(MD_MAX72XX::TSL); if (i < charWidth) { mx.setColumn(0, cBuf[i]); } delay(DELAYTIME); } } } void rows() { mx.clear(); for (uint8_t row=0; row= 3) { char hex[3]; sprintf(hex, "%02X", i); mx.clear(1); mx.setChar((2*COL_SIZE)-1, hex[1]); mx.clear(2); mx.setChar((3*COL_SIZE)-1, hex[0]); } mx.update(); delay(DELAYTIME*2); } mx.update(MD_MAX72XX::ON); } void setup() { mx.begin(); } void loop() { scrollText("Graphics"); rows(); columns(); intensity(); transformation(); showCharset(); delay(3000); }