NHD-1.69-160128UGC3 display not turning ON

Comments

1 comment

  • Engineering Support
    Community moderator

    Hi Apurva,

    Apologies for the late response.  In addition to applying 3.3V to the display's VDD pin, you also need to send a series of instructions to the display through the SPI interface in order to turn the display on.  Below is the recommended initialization instructions that need to be sent to the display to turn it on.  You may also refer to our example code for this display for additional information.

    void OLED_Init_160128RGB(void)      //OLED initialization
    {
        digitalWrite(RES_PIN, LOW);
        delay(2);
        digitalWrite(RES_PIN, HIGH);
        delay(2);
        
        // display off, analog reset
        OLED_Command_160128RGB(0x04);
        OLED_Data_160128RGB(0x01);
        delay(1);
        
         // normal mode
        OLED_Command_160128RGB(0x04); 
        OLED_Data_160128RGB(0x00); 
        delay(1);
        
        // display off
        OLED_Command_160128RGB(0x06);
        OLED_Data_160128RGB(0x00);
        delay(1);
        
        // turn on internal oscillator using external resistor
        OLED_Command_160128RGB(0x02);
        OLED_Data_160128RGB(0x01); 
        
        // 90 hz frame rate, divider 0
        OLED_Command_160128RGB(0x03);
        OLED_Data_160128RGB(0x30); 
        
        // duty cycle 127
        OLED_Command_160128RGB(0x28);
        OLED_Data_160128RGB(0x7F);
        
        // start on line 0
        OLED_Command_160128RGB(0x29);
        OLED_Data_160128RGB(0x00); 
        
        // rgb_if
        OLED_Command_160128RGB(0x14);
        OLED_Data_160128RGB(0x31); 
        
        // Set Memory Write Mode
        OLED_Command_160128RGB(0x16);
        OLED_Data_160128RGB(0x76);
        
        // driving current r g b (uA)
        OLED_Command_160128RGB(0x10);
        OLED_Data_160128RGB(0x45);
        OLED_Command_160128RGB(0x11);
        OLED_Data_160128RGB(0x34);
        OLED_Command_160128RGB(0x12);
        OLED_Data_160128RGB(0x33);
        
        // precharge time r g b
        OLED_Command_160128RGB(0x08);
        OLED_Data_160128RGB(0x04);
        OLED_Command_160128RGB(0x09);
        OLED_Data_160128RGB(0x05);
        OLED_Command_160128RGB(0x0A);
        OLED_Data_160128RGB(0x05);
        
        // precharge current r g b (uA)
        OLED_Command_160128RGB(0x0B);
        OLED_Data_160128RGB(0x9D);
        OLED_Command_160128RGB(0x0C);
        OLED_Data_160128RGB(0x8C);
        OLED_Command_160128RGB(0x0D);
        OLED_Data_160128RGB(0x57);
        
        // Set Reference Voltage Controlled by External Resister
        OLED_Command_160128RGB(0x80);
        OLED_Data_160128RGB(0x00);
        
        // mode set
        OLED_Command_160128RGB(0x13);
        OLED_Data_160128RGB(0xA0);
        
        OLED_SetColumnAddress_160128RGB(0, 159);
        OLED_SetRowAddress_160128RGB(0, 127);
    
        // Display On
        OLED_Command_160128RGB(0x06);
        OLED_Data_160128RGB(0x01); 
    }

    Please let us know if this helps.

    0

Please sign in to leave a comment.