#include "LedControl.h"
#include "qrcode.h"
// Create an instance of the LedControl library
LedControl lc = LedControl(11, 13, 10, 1);
void setup() {
// Start the serial communication
Serial.begin(115200);
// Initialize the LED matrix display
lc.shutdown(0, false);
lc.setIntensity(0, 8);
lc.clearDisplay(0);
// Create the QR code
QRCode qrcode;
uint8_t qrcodeData[qrcode_getBufferSize(4)];
qrcode_initText(&qrcode, qrcodeData, 4, 0, "HELLO WORLD");
// Display the QR code on the LED matrix
for (int y = 0; y < qrcode.size; y++) {
for (int x = 0; x < qrcode.size; x++) {
if (qrcode_getModule(&qrcode, x, y)) {
lc.setLed(0, x, y, true);
}
}
}
}
void loop() {
}