ricmoo / QRCode

QR code generation library in C, optimized for low-power devices, such as Arduino.
Other
647 stars 204 forks source link

Doesn't work with 300 character #37

Open galihendah opened 1 year ago

galihendah commented 1 year ago

can you help me the qr code can't scan with 300 character

rochanson commented 1 year ago

Me too, still figuring out what to do, only 175 characters or less could be generated as a scanable/readable qrcode

ricmoo commented 1 year ago

You need to use a larger version then. The version dictates how much data can be stored in the QR code.

rochanson commented 1 year ago

You need to use a larger version then. The version dictates how much data can be stored in the QR code.

I've tried different version start from version 8 till version 12, but the generated qrcode are still unable to be scan

ricmoo commented 1 year ago

There is a chart on the readme. If you are encoding bytes with high ECC, you would need version 18. You can use the chart to figure out the necessary minimum version, based on your parameters.

rochanson commented 1 year ago

Im using arduino mega and spfd5408 tft display to show and generate qrcode from string data, here [pic1] im using version 18 and yet still unable to scan. And here [pic2] as the comparison of web based qrgenerator via goqr.me , and it's able to be scan. IMG_20230228_140238 l