informatica:arduino:matrix_led
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:arduino:matrix_led [2022/10/24 22:03] – jose | informatica:arduino:matrix_led [2025/05/03 14:25] (current) – jose | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== Matrix |
| - | Hay varias bibliotecas (que no librerías) | + | |
| - | ====== Ejemplo 1 ====== | + | ^ ESP32 ^ MAX7219 ^ Descripción ^ |
| - | https:// | + | | 5V | VCC | Alimentación | |
| + | | GND | GND | Tierra | | ||
| + | | GPIO 23 | DIN | Datos | | ||
| + | | GPIO 5 | CS | Chip Select (CS/LOAD) | | ||
| + | | GPIO 18 | CLK | Reloj | | ||
| - | Bibliotecas: | ||
| - | |||
| - | {{: | ||
| - | |||
| - | ^PANEL^ESP32^ | ||
| - | |VCC|Vin| | ||
| - | |GND|GND| | ||
| - | |DIN|GPIO23| | ||
| - | |CS|GPIO5| | ||
| - | |CLK|GPIO18| | ||
| - | |||
| - | < | ||
| - | #include < | ||
| - | #include < | ||
| - | #include < | ||
| - | |||
| - | // Uncomment according to your hardware type | ||
| - | #define HARDWARE_TYPE MD_MAX72XX:: | ||
| - | //#define HARDWARE_TYPE MD_MAX72XX:: | ||
| - | |||
| - | // Defining size, and output pins | ||
| - | #define MAX_DEVICES 4 | ||
| - | #define CS_PIN 5 | ||
| - | |||
| - | MD_Parola Display = MD_Parola(HARDWARE_TYPE, | ||
| - | |||
| - | void setup() { | ||
| - | |||
| - | Display.begin(); | ||
| - | Display.setIntensity(0); | ||
| - | Display.displayClear(); | ||
| - | } | ||
| - | |||
| - | void loop() { | ||
| - | Display.setTextAlignment(PA_LEFT); | ||
| - | Display.print(" | ||
| - | delay(2000); | ||
| - | | ||
| - | Display.setTextAlignment(PA_CENTER); | ||
| - | Display.print(" | ||
| - | delay(2000); | ||
| - | |||
| - | Display.setTextAlignment(PA_RIGHT); | ||
| - | Display.print(" | ||
| - | delay(2000); | ||
| - | |||
| - | Display.setTextAlignment(PA_CENTER); | ||
| - | Display.setInvert(true); | ||
| - | Display.print(" | ||
| - | delay(2000); | ||
| - | |||
| - | Display.setInvert(false); | ||
| - | delay(2000); | ||
| - | } | ||
| - | </ | ||
informatica/arduino/matrix_led.1666649034.txt.gz · Last modified: by jose
