QR Code library
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: QR Code library

by lazze on Tue Nov 20, 2012 5:33 pm

commy wrote:I did not rewrite the code to a Arduino library because of the way qrduino is build.

But it is quite easy to use when you got an idea of how it works. The code comes with both a project and an some tools, one for generating the frame.h file to optimise the SRAM usage.

First build the tool using the Makefile and then run the ./dofbit with the version and level needed (be carefull of memory use when using higher version and ecc levels).

Next copy the files frame.h, qrencode.h and qrencode.cpp to your Arduino sketch.

Include the frame.h and qrencode.h and copy the string you want to encode to the "strinbuf" object and call qrencode();

strcpy((char *)strinbuf, "http://adafruit.com");

And you can now run through QRBIT(x,y) to get the pixel (use WD to find max width and height of x and y).

Hope this helps!

Best answer ever! Thank you very much. 8)
Posts: 3
Joined: Sun Nov 18, 2012 11:45 am

Re: QR Code library

by ambanmba on Fri Jun 03, 2016 10:22 am

This QR Code "library" is fantastic. Thanks commy for all the work.

I do have a question... per this link: http://www.qrcode.com/en/about/version.html it would appear that the maximum number of encodable characters is defined by the binary column (for example, on my 25x25 pixel QR, ECC level L, I can only encode 32 characters).

What changes to the code would be needed to set it so that I can achieve 47 alphanumeric characters on a 25x25 pixel QR?



Posts: 1
Joined: Fri Jun 03, 2016 10:10 am

Please be positive and constructive with your questions and comments.