You are reading a single comment by @Aifer and its replies. Click here to read the full conversation.
  • Hi @Aifer,

    check the state of your rest pin, should be "input_pullup" to make digitalPulse(rst,0,10) work

  • Hi, @MaBe
    In SSD1306.js / connectSPI() function

    1)

    if (rst) {
        pinMode(rst, "input_pullup");
        digitalPulse(rst,0,10);
      }
    

    Not work.

    2)

    if (rst) {
        pinMode(rst, "input_pullup");
        digitalPulse(rst,1,10);
      }
    

    Work well.

    3)

    if (rst) {
        //pinMode(rst, "input_pullup");
        digitalPulse(rst,1,10);
      }
    

    Work well.

    4)

    if (rst) {
        digitalWrite(rst,1);
        digitalWrite(rst,0);
        setTimeout(function(){ digitalWrite(rst,1); },10);
      }
    

    Work well.

    5)

    if (rst) {
        digitalWrite(rst,0);
        digitalWrite(rst,1);
        setTimeout(function(){ digitalWrite(rst,0); },10);
      }
    

    Not work.

    6)

    if (rst) {
        pinMode(rst, "input_pullup");
        digitalWrite(rst,1);
        digitalWrite(rst,0);
        setTimeout(function(){ digitalWrite(rst,1); },10);
      }
    

    Work well.

    7)

    if (rst) {
        pinMode(rst, "input_pullup");
        digitalWrite(rst,0);
        digitalWrite(rst,1);
        setTimeout(function(){ digitalWrite(rst,0); },10);
      }
    

    Work well.

About

Avatar for Aifer @Aifer started