How to use piu/MC/QRCode? #859
Answered
by
wilberforce
wilberforce
asked this question in
Q&A
-
|
I've tried: main.js: p.s. using unicode block █ and spaces x 2 yields this trace output which then can be scanned by phone: |
Beta Was this translation helpful? Give feedback.
Answered by
wilberforce
Feb 28, 2022
Replies: 2 comments 4 replies
-
|
Here's what we usually do. Include the QR Code bits in the manifest: "modules": {
"piu/QRCode": "$(MODULES)/piu/MC/qrcode/piuQRCode",
"*": [
"$(MODULES)/data/qrcode/qrcode",
"$(MODULES)/data/qrcode/qrcodegen"
]
},
"preload": [
"qrcode",
"qrcodegen",
"piu/QRCode"
]Then instantiate the Piu QR code object (code here from a template): QRCode($, { width:110, top:30, height:110, skin: {fill:WHITE, stroke:BLACK}, string: "The message", maxVersion:10 }) |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
see above! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wilberforce
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



see above!