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:07] – jose | informatica:arduino:matrix_led [2024/11/13 20:32] (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 18 | CLK | Reloj | | ||
+ | | GPIO 5 | CS | Chip Select (CS/LOAD) | | ||
- | 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 DATA_PIN 23 | ||
- | #define CS_PIN 5 | ||
- | #define CLK_PIN 18 | ||
- | |||
- | |||
- | 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.1666649272.txt.gz · Last modified: 2022/10/24 22:07 by jose