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

Missing Alignment and finder patterns #42

Open
Nafihahmd opened this issue May 21, 2024 · 0 comments
Open

Missing Alignment and finder patterns #42

Nafihahmd opened this issue May 21, 2024 · 0 comments

Comments

@Nafihahmd
Copy link

Nafihahmd commented May 21, 2024

I am using the library to plot the QR code on an monochrome 8 bit lcd display. I am able to plot the QR directly from the buffer. The code I am using is as below:


#define __width 41
#define __height 41
#define __input_size (__width +7)/8 * __width

....

int main() {
// The structure to manage the QR code
QRCode qrcode;

// Allocate a chunk of memory to store the QR code
uint8_t qrcodeBytes[qrcode_getBufferSize()];

qrcode_initText(&qrcode, qrcodeBytes, 3, ECC_LOW, "HELLO WORLD");
 ...
  for(int i=0; i<__input_size; i++){
      LCD_putByte(qrcodeBytes[i]);
     }
...
}

But the resulting QR code is not scannable and lacks finder/alignment patterns. Any guess why?

Thanks in advance

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

1 participant