Skip to content

QR code looks like a jumbled mess #12

@Brayden1000

Description

@Brayden1000

Hi,

I am trying to print a QR code onto an SSD1306 128x64 display but I'm having some issues, the QR code is a jobbled mess. it doesn't look like a QR code at all. I am just using the base example code:

Code:

#include <qrcode.h>
#include <SSD1306.h>

SSD1306  display(0x3c, SDA, SCL);
QRcode qrcode (&display);

void setup() {

    Serial.begin(115200);
    Serial.println("");
    Serial.println("Starting...");

    display.init();
    display.clear();
    display.display();


    // enable debug qrcode
    // qrcode.debug();

    // Initialize QRcode display using library
    qrcode.init();
    // create qrcode
    qrcode.create("Hello world.");

}

void loop() { }

Here is the QR code:
https://imgur.com/a/WMiXy87

Thanks all!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions