• With some help there is now a qrcode lib in my custom firmware build.

    // running on linux build
    var g = Graphics.createArrayBuffer(128,64,1,drawPixel);
    var version = 3; // 29x29
    var text = "Espruino Rocks";
    var size = version * 4 + 17;
    var ECC = 3; // 3:high, 1:medium
    image = Graphics.createArrayBuffer(size,size,1, {msb:true});
    qrcode = require('qrcode').generate(text,image.buffer,version,ECC);
    g.clear().drawImage(image.asImage("string"),30,2,{scale:2});
    g.dump();
    
  • Hey, I am interested in generating qr code on the fly with my pixl.js (and bangle2)

    Do you have more complete code I could look at ?

About

Avatar for user113146 @user113146 started