Author Topic: NHD-3.12-25664UCY2 flickering  (Read 6150 times)


  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
NHD-3.12-25664UCY2 flickering
« on: January 28, 2015, 04:49:21 AM »

I have just started playing with driving a NHD-3.12-25664UCY2 from a Raspberry Pi using 4-wire SPI in Python.

I have successfully got the display working and can draw onto it, however the display has very noticeable flickering.

I am pretty sure that this is controlled by some of the init parameters, which I think I copied from some sample code.
Unfortunately this is my first time driving a display and all the various timing and voltage values went right over my head
and I'm a bit worried about damaging the display if I just start guessing at values.

Could someone please talk me through how I would change the init parameters to get a solid display with no flickering?

These are the details I can remember (don't have the code in front of me):
- Input voltage 3.3v from Raspberry Pi
- 4-wire SPI interface
- SPI clock at 1MHz, just guessed at that value, how high can I go with this display?
- Internal voltage regulator

I saw a bunch of settings which I thought might affect the flickering but I have no clue what they mean and what affect they have on the display:
- Phase length
- Display clock divider
- Display enhancement A
- Display enhancement B
- Precharge period
- Precharge voltage
- Contrast current
- Master contrast current
- Multiplex ratio

I did read the datasheet regarding these values but it just talks in pure voltages/timings and doesn't actually tell you what effect these settings have on the physical display. Some plain English for us newbies would be fantastic, I'm trying to learn how to pick up and drive these things so any clearer explanations on these more technical settings would go a long way.

Any ideas on what I need to change to get rid of the flickering?

Many thanks,



  • Administrator
  • Hero Member
  • *****
  • Posts: 357
  • Karma: 34
    • View Profile
Re: NHD-3.12-25664UCY2 flickering
« Reply #1 on: January 29, 2015, 07:54:29 AM »
I'm sorry but unfortunately we do not have such a guide explaining all the commands.  The controller's datasheet should have sufficient information for this.
Here is a link to it:

In terms of the initialization, please use our example initialization sequence in the display's datasheet, page 12.  There is no flickering present with this initialization.


  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: NHD-3.12-25664UCY2 flickering
« Reply #2 on: January 30, 2015, 04:36:07 AM »
Thanks Michael, when I checked my initialization code it all matched the example, apart from the display clock setting.
I changed that to match and the flickering has now gone. Nice stable display now.


  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: NHD-3.12-25664UCY2 flickering
« Reply #3 on: January 24, 2016, 09:51:48 AM »
Can you post your initialization code here to see if I can duplicate your issue?
I assume this is for SSD1322 controller, right?



NHD-3.12-25664UCY2 display - inconsistent pixel brightness in same areas

Started by billBoard OLEDs

Replies: 2
Views: 2596
Last post May 24, 2018, 11:43:47 AM
by Paul_B
NHD-2.8-25664UCY2 PCB revisions?

Started by mbrinksBoard OLEDs

Replies: 5
Views: 7697
Last post August 27, 2014, 04:32:25 AM
by mbrinks
NHD 2.8-25664UCY2 & Arduino DUE ... help!

Started by WolverineBoard OLEDs

Replies: 6
Views: 6317
Last post January 13, 2016, 08:10:28 AM
by Wolverine
NHD-2.8-25664UCY2 - 3d model

Started by cmcraesloBoard OLEDs

Replies: 1
Views: 2889
Last post November 16, 2016, 03:09:40 PM
by Saurabh_B
NHD-3.12-25664UCY2 Drawing

Started by row_devBoard OLEDs

Replies: 2
Views: 1975
Last post October 15, 2018, 09:52:35 PM
by row_dev