breadboard
documentación

Proyecto de ejemplo · Pantallas

Uno R4 · Corazón en matriz LED

La biblioteca oficial Arduino_LED_Matrix dibuja un corazón mediante los pines reales de la matriz 12×8. Edita el mapa de bits en Code para cambiar el patrón.

El circuito Uno R4 · Corazón en matriz LED tal como lo dibuja el simulador

Componentes del montaje

  • Arduino Uno R4

El código

Este sketch de Arduino C++ está en Code; inicia sesión y pulsa Compile & upload para compilar firmware real para la placa emulada.

#include <Arduino_LED_Matrix.h>

ArduinoLEDMatrix matrix;

uint8_t heart[8][12] = {
  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  {0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0},
  {0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0},
  {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
  {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
  {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
  {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
  {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0},
};

void setup() {
  matrix.begin();
  matrix.renderBitmap(heart, 8, 12);
}

void loop() {}

Licencia del firmware (en inglés)

Notice: this firmware uses the LGPL-licensed Arduino core library

arduino-unor4wifi-matrix-heart.bin is statically linked with ArduinoCore-renesas 1.6.0, in Breadboard's port of its UNO R4 WiFi variant to Renesas FSP 5.3.0. Parts of that core are licensed under the GNU Lesser General Public License, version 2.1 or (at your option) any later version ("the Library"). Breadboard distributes this firmware under terms that permit you to modify the work for your own use and to reverse engineer it for debugging such modifications.

Informar de un problema de traducción

Proyectos relacionados