Newhaven Display Forum

Newhaven Products => OLEDs => Topic started by: ekiny on February 28, 2016, 01:52:17 PM

Title: NHD-1.69-160128UGC3 with STM32F0
Post by: ekiny on February 28, 2016, 01:52:17 PM
I have 160128UGC3 for prototype testing.

It was working with Serial interface on Arduino Nano with your sample code. But it was slow because of Arduino's slow processor. (Also paralel interface's speed was not enough for our project)

So we got a Nucleo F042K6 (48mhz) for testing and connected same serial pins and wrote our cpp codes depend on arduino codes.

oled is working but there is a problem. it is brightness is dimmed to much and refresh rate is not stable. I think we have to change in settings of oled but don't know what to do.

Can you please give us some ideas?
Title: Re: NHD-1.69-160128UGC3 with STM32F0
Post by: Paul_B on March 02, 2016, 04:06:43 PM
Hello,

First, I recommend you look over the ”Instruction Description” in the controllers datasheet (Page 17):

http://www.newhavendisplay.com/app_notes/SEPS525.pdf

You can increase the brightness by adjusting the Driving_Current registers for Red, Green and Blue.

Code: [Select]
//NHD Recommended -  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);

//MAX - driving current r g b (uA)
    OLED_Command_160128RGB(0x10);
    OLED_Data_160128RGB(0xFF);
    OLED_Command_160128RGB(0x11);
    OLED_Data_160128RGB(0xFF);
    OLED_Command_160128RGB(0x12);
    OLED_Data_160128RGB(0xFF);

Please note that when you increase the brightness of any display this will reduce the lifetime.

Hope this helps!