• Hi, I've used code to run ssd1306 display from Espruino Web but it has some error
    code I used

    function start(){
     // write some text
     g.drawString("Hello World!",2,2);
     // write to the screen
     g.flip(); 
    }
    
    // I2C
    I2C1.setup({scl:B6,sda:B7});
    var g = require("SSD1306").connect(I2C1, start);
    

    error I've got

    >echo(0);
    Uncaught InternalError: Timeout on I2C Write BUSY
     at line 1 col 19
    {b.writeTo(d,[0,a])}
                      ^
    in function called from line 1 col 147
    ...tion(a){b.writeTo(d,[0,a])});void 0!==c&&setTimeout(c,100);g...
                                  ^
    in function "connect" called from line 1 col 47
    var g = require("SSD1306").connect(I2C1, start);
                                                  ^
    =undefined
    >
    

    anyone knows how to fix it?

About

Avatar for bigplik @bigplik started