#include <Arduino.h>
#define OLEDDISPLAY
#include <qrcodeoled.h>
#include <SSD1306.h>
SSD1306 display(0x3c, 21, 22); // Only change
QRcodeOled qrcode (&display);
void setup() {
Serial.begin(115200);
Serial.println("");
Serial.println("Yuklanmoqda...");
display.init();
display.clear();
display.display();
Serial.println("Tozalandi...");
// enable debug qrcode
qrcode.debug();
// Initialize QRcode display using library
qrcode.init();
Serial.println("Malumot tayyor...");
// create qrcode
qrcode.create("Assalomu alaykum. Sahifaga obuna bo'ling");
Serial.println("...");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}