• 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,draw­Pixel);
    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.bu­ffer,version,ECC);
    g.clear().drawImage(image.asImage("strin­g"),30,2,{scale:2});
    g.dump();
    

    1 Attachment

    • Bildschirmfoto 2020-09-14 um 10.58.58.jpg
About

Avatar for MaBe @MaBe started