Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR code looks like a jumbled mess #12

Open
Brayden1000 opened this issue Aug 18, 2020 · 1 comment
Open

QR code looks like a jumbled mess #12

Brayden1000 opened this issue Aug 18, 2020 · 1 comment

Comments

@Brayden1000
Copy link

Brayden1000 commented Aug 18, 2020

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!

@psilonux
Copy link

I experienced a similar issue. The pixels didn't scale to the resolution of the OLED screen I used (a ST7789). I manage to fix it by changing some of the code. I will try to push the changes I made to this repo (but I'm a complete git noob..).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants