I just published my first open-source Lua C-Extension: crunk-qrcode.
It takes an MIT licensed QRCode generator written in C (qrcodegen.c), tweaks it to compile for Playdate and provides a Lua wrapper. This is fast enough to do real-time QRCode generation (no async callbacks required). Speed-up is 75-150x over the playdate.graphics.generateQRCode in the SDK, depending on length:
Here's a stupid demo where I regenerated the qrcode in realitime via crank.
I'd love to add that speed up! Hope to use it soon. Good job. Thx.
Looks like the colours are inverted, or is that okay? I don't seem to be able to scan it using Firefox on Android.
@thomastc Oops. That animated GIF is indeed inverted. It was from a pre-release version of the code.
Here's what the code in the repo produces:
Also funny because iOS will happily read the inverted code.
Ohhh nice, that's amazing. I was specifically for an option to set error recovery level to low, because we're showing it on a digital screen anyways, no need to protect against torn paper.