Uncaught ReferenceError: "Graphics" is not define

Posted on
  • What's the problem?

    I2C1.setup({scl:D2,sda:D0});
    
    var g = require("SSD1306").connect(I2C1, function() {
      g.clear();
      g.drawString("Hello",0,0);
      g.flip();
    });
    

    | |_ ___ ___ _ ||___ ___
    | |_ -| . | _| | | | | . |
    |
    || || |_|||_|_|
    http://espruino.com
    1v94 Copyright 2016 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:512/512, manuf 0xef chip 0x4016

    Uncaught ReferenceError: "Graphics" is not defined
    at line 1 col 20
    k(e);var f=Graphics.createArrayBuffer(128,g[4]+1,1,{vertical...
    in function "connect" called from line 7 col 2
    });
    =undefined

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Uncaught ReferenceError: "Graphics" is not define

Posted by Avatar for Alexander @Alexander

Actions