Avatar for navas

navas

Member since Jan 2017 • Last active Feb 2020
  • 11 conversations
  • 76 comments

Most recent activity

  • in ESP32
    Avatar for navas

    @Raik
    Thank you so much, I will give it a try ASAP.

  • in ESP32
    Avatar for navas

    @Raik, can you please share us the details ( if possible, with the code) ?

    Thanks
    Navas

  • in ESP32
    Avatar for navas

    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);
    
  • in ESP32
    Avatar for navas

    Here is the connection with my ESP8266, please let me know if you need any more information

    DISPLAY    |    ESP8266
    —————————————————————
    VCC        |    3.3V
    GND        |    GND
    SDI        |    13
    SCLK       |    14
    CS         |    15
    D/C        |    0
    Reset      |    2
    Busy       |    4
    
  • in ESP32
    Avatar for navas

    Does anyone know how to connect this on a plain ESP8266-12E?

    • 18 comments
    • 6,361 views
  • in The Place for Patreon Patrons
    Avatar for navas

    I would love to discuss more on Alexa integration!

  • in ESP8266
    Avatar for navas

    Is there any progress?

    Thanks
    Navas

    • 6 comments
    • 4,160 views
  • in Pico / Wifi / Original Espruino
    Avatar for navas

    @furuskog I would recommend you buy preinstalled one. You definitely don't want to go through the troubles which I had.

    Thanks
    navas

Actions