• Hello,

    I'm totally newbies with Espruino and i'm trying to display my converted image on my SSD1306 but no success.

    I tryed several times but it don't work.

    This my code :

    var mylogo = {
      width : 34, height : 38, bpp : 1,
      transparent : 1,
      palette : new Uint16Array([65535,65535]),
      buffer : E.toArrayBuffer(atob("//4f////A////4B////AD///4AH///AAP//wAAP/gAAAB4AECABAAQIAAACAQAAA4BwAAHADgAAcAOAIDgAcBgODBwHB4MDg8HAwODwcHg4PBgeBg8GAAGDwQAAIOBAAAgYAAAABAAf4AAAD/wAAAP/AAAA/8AAAE/IAIAAAAB4AAAAf/AAA///AAP//+AB///8AP///4B////wP////h//w"))
    };
    
      function LogoDisplay(){
        if (!display) {
          NumControl();
          return;
        }
        var x1x2 = 1;
        g.clear();
        g.drawImage(mylogo, 15, 15);
        g.flip();
        var preloader = setInterval(function () {
          g.setContrast(x1x2);
          g.drawLine(x1x2, 50, x1x2, 60);
          x1x2 += 2;
          g.drawLine(x1x2, 50, x1x2, 60);
          x1x2 += 2;
          g.drawLine(x1x2, 50, x1x2, 60);
          x1x2 += 2;
          g.drawLine(x1x2, 50, x1x2, 60);
          x1x2 += 2;
          g.drawLine(x1x2, 50, x1x2, 60);
          x1x2 += 2;
          g.drawLine(x1x2, 50, x1x2, 60);
          x1x2 += 2;
          g.flip();
          if (x1x2 > 126) {
            clearInterval(preloader);
            NumControl();
            StartDisplay();
            wifiConnect();
          }
        }, 10);
      }
    

    Someone to help me please?

    EDIT: My board is R1 32 Espruino

  • Sun 2021.08.08

    Has an attempt been made using a proven tutorial example to rule out whether we are dealing with a buffer creation issue, an atob() data conversion issue or the actual comm with the SSD1306?

    http://www.espruino.com/Graphics

    See the 8x8 pixel smiley face example below heading 'Images / Bitmaps'

    What are the results of that proven example?

About

Avatar for BullzLabz @BullzLabz started