espressif / idf-extra-components

Additional components for ESP-IDF, maintained by Espressif
143 stars 86 forks source link

[QRCode Library] Missing feature to generate qrcode for specific version (IEC-76) #286

Open gautam-dev-maker opened 8 months ago

gautam-dev-maker commented 8 months ago

Is your feature request related to a problem?

1) I am currently working to display my qrcode on epaper display. The size of qrcode is fixed for the version 9 and same space is reserved for it on display. But when generating the qrcode using the espressif/qrcode, I can only specify the max_qrcode_version and it returns the buffer for qrcode with the least version possible, which does not look good on the display since it has smaller size than version 9.

2) There should also be a function to get the qrcode buffer, rather than depending on the display_func, some applications might need more freedom to deal with the buffers and perform operations on it like scaling, as in case of displaying UI.

Describe the solution you'd like.

qrcodegen in espressif/qrcode already have the API to specify the minVersion and maxVersion of the qrcode but the API is not exposed. All of it's APIs should be exposed to allow low level access for programmer to generate qrcode.

Describe alternatives you've considered.

Due to the aforementioned short comings, I have resorted to using the external library like: ricmoo/QRCode.

Thank you!

Additional context.

No response