Author Topic: NHD-2.7-12864UCY3 brightness/contrast adjusting  (Read 6619 times)


  • Jr. Member
  • **
  • Posts: 10
  • Karma: 0
    • View Profile
NHD-2.7-12864UCY3 brightness/contrast adjusting
« on: September 04, 2014, 11:57:57 AM »
Is the 0x81 command the correct one to adjust the brightness/contrast on the NHD-2.7-12864UCY3?  If not, what is?  What is the acceptable range?  0-255? 


  • Administrator
  • Hero Member
  • *****
  • Posts: 357
  • Karma: 34
    • View Profile
Re: NHD-2.7-12864UCY3 brightness/contrast adjusting
« Reply #1 on: September 08, 2014, 09:30:55 AM »
That command, along with the set current range command will control the brightness/contrast.  This can be seen in our datasheet, and in more detail in the controller's datasheet here:
Page 32 is the start of the command table, and below that are detailed descriptions of each command.


  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: NHD-2.7-12864UCY3 brightness/contrast adjusting
« Reply #2 on: January 24, 2016, 04:04:56 PM »

I tried your code per the posted file: OLED_25664.txt  and apparently I cold not get the display to be ON at all -- nothing showing up on the display !!.
I check the hardware many times, I am almost certain that the Hardware is fine.  It must be software related issue.
Question for you is regarding the two functions:  void oled_Command_25664(unsigned char Data), and  void oled_Data_25664(unsigned char Data)
I did not see any delay to slow down the SCLK signal at all, it is possible that my CPU might be running too fast for the display?  that is the
only thing that I can think of why it did not work for me.

I am testing the display:  NHD‐2.8‐25664UCB2   

Please advise, and thank you in advance,



  • Administrator
  • Hero Member
  • *****
  • Posts: 384
  • Karma: 10
    • View Profile
Re: NHD-2.7-12864UCY3 brightness/contrast adjusting
« Reply #3 on: January 28, 2016, 09:51:31 AM »
Would it be possible to copy your code here?

It might help to see where the issue might be. Also if possible can you also upload your wiring diagram?


NHD‐C0220AA‐FSW‐FTW Contrast

Started by mhathawayBoard Character LCDs

Replies: 1
Views: 4677
Last post March 03, 2015, 11:53:43 AM
by Retheesh_M
Contrast supply for NHD‐24064WG‐ATFH‐VZ#

Started by Shaun_CarawayBoard Graphic LCDs

Replies: 2
Views: 7859
Last post May 19, 2014, 10:01:31 AM
by Shaun_Caraway
NHD‐0420CW‐AG3 Contrast question

Started by RichardRBoard OLEDs

Replies: 2
Views: 6863
Last post January 16, 2016, 09:52:02 AM
by RichardR
Backlight brightness with TFT displays (5" and 7")

Started by dsheroBoard TFTs

Replies: 3
Views: 8241
Last post July 21, 2015, 07:19:42 AM
by Michael_L
Setting contrast using component pads on LCD module - NHD-24064WG-ATMI-VZ

Started by ngatgiBoard Graphic LCDs

Replies: 1
Views: 3090
Last post April 04, 2018, 07:08:38 PM
by ngatgi