You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
  • I am able to run the display using arduino using GxEPD2 lib. But I can't get it work with Espruino :(,

    this is the code I am using, can some one help me getting the display to work?

    var spi;
    var display;
    
    function setupSPI(){
      console.log('starting SPI');
      spi = new SPI();
      spi.setup({ sck:D14, mosi:D13 });
      display = require('SSD1606.min').connect({
          display: {
            bpp : 1,
            displaySizeX      : 200,
            displaySizeY      : 200,
            lutRegisterData   : new Uint8Array([0x10, 0x18, 0x18, 0x08, 0x18, 0x18, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x14, 0x44, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]), // PARTIAL update lutRegisterData, covered further
            maxScreenBytes    : 5000, // this
            ramXStartAddress  : 0x00, // this
            ramXEndAddress    : 0x18, // this
            ramYStartAddress  : 0xC7, // this
            ramYEndAddress    : 0x00 // and this
          },
          spi        : spi,
          cs1Pin     : D15,
          dcPin      : D0,
          resetPin   : D2,
          busyPin    : D4,
    //      powerPin   : B15
      });
      //display.on();
    
    display.hwReset(function(){
        display.init(
          function(err){
            display.g.clear(0xFF);
            display.g.setRotation(1);
            display.g.setColor(0x00);
            display.g.setFontVector(20);
            display.g.drawString('Hello World!', 22, 22);
            display.g.flip();
            display.refreshScreen(function(err){
              display.off();
            });
          },
          { clearScreenColor: 0x00 }
        );
      });
    }
    
    
    
    function start() {
      setupSPI();
    }
    
    E.on('init', start);
    
  • Wed 2019.09.18

    Thank you @navas for posting the table.

    While I am unable to give a definitive answer for this part combination, I am reasonably certain the issue lies in how the pins are referenced. Although this link isn't directly related to the E-Paper display, it does provide what @MaBe helped me solve with pin references when using the ESP8266

    http://forum.espruino.com/comments/14778­779/

    Reading the entire thread should provide the insight should the above starting point not prove helpful.

About

Avatar for Robin @Robin started