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();
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
With some help there is now a qrcode lib in my custom firmware build.