CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: SopaXorzTaker on December 17, 2017, 02:54:57 PM

Title: [TI-84+CE] QR encoder
Post by: SopaXorzTaker on December 17, 2017, 02:54:57 PM
https://github.com/SopaXorzTaker/ti-qr

I've decided to port a QR code library onto the TI-84+CE, and found https://github.com/ricmoo/QRCode, which is portable and optimized for low-power devices.

To compile that library for the calculator (with Zilog's ANSI C compiler included), I had to rewrite some of the code to compile under ANSI C, as the compiler was complaining.
Anyway, when you run the demo program (DEMO.8xp, see below), it's going to take about a minute to process and then you'll get a QR code with the sample message displayed on the calculator screen.
Press any key to exit the demo program.
Title: Re: QR encoder
Post by: critor on December 21, 2017, 10:02:20 PM
Thank you very much for your great port. It works perfectly with much longer messages ! :D
(https://tiplanet.org/forum/gallery/image.php?mode=medium&album_id=64&image_id=9080) (https://tiplanet.org/forum/gallery/image_page.php?image_id=9080)
Title: Re: [TI-84+CE] QR encoder
Post by: JWinslow23 on December 22, 2017, 12:50:26 PM
Awesome! Can you modify this to do multiple levels? (i.e. the higher the level gets, the more of it can be removed while still being able to detect the message)
Title: Re: QR encoder
Post by: critor on December 22, 2017, 01:26:05 PM
Yes, just some parameter to change in the main :
https://tiplanet.org/pb/?id=2043_1513701783_87ef52c647

In my STR2QR project, it's ECC_LOW.
You may change it to ECC_MEDIUM, ECC_QUARTILE, or ECC_HIGH.