ImpulseAdventure / GUIslice-Builder

Cross-platform drag & drop GUI builder for GUIslice
Other
166 stars 35 forks source link

qrcode control Feature request #159

Closed todosrc closed 1 year ago

todosrc commented 3 years ago

How to implement QRCode? https://github.com/yoprogramo/ESP_QRcode

Pconti31 commented 3 years ago

@todosrc First no additional support is required by GUIslice to output QR Codes. You simply need to choose a library that supports many different displays. The Arduino QRCODE library works well. To use this library you just need to create a UI element Box the size of your QR Code output + 1 extra pixel for the frame, then in the Property View for this box set "Draw Function=true". After you do a code generation edit the CbDrawScanner() function to draw your QR Code. You also need to encode your text string inside the setup() function.

I put together a demo using this library with an ESP32, a 320x240 TFT screen using TFT_eSPI display library. It simply outputs the QR Code for "Hello World". Hopefully, it has enough detail to explain how you can do the same. test_qrcode.zip

Paul--