Author Topic: Blinking Double Height Font NHD-0216CW  (Read 192 times)

MatthewKerr

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Blinking Double Height Font NHD-0216CW
« on: November 13, 2018, 05:45:23 PM »
Hi.
I am using double height font with the NHD-0216CW. I would like to create a blinking effect by writing to DDRAM address 0x00 and 0x40 and switching between the two addresses. For example, i would write the following to each address:
0x00:  'Test:         On'
0x40:  'Test:           '

By switching between the two addresses, the right hand side of the display would appear to blink. This is to highlight to the user that the text 'On' is modifiable.
Currently I re-write to the display when I want the switch/blink to occur. But I suspect there is a better way to do this.
Thanks.

Alee_S

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Blinking Double Height Font NHD-0216CW
« Reply #1 on: November 28, 2018, 12:51:53 PM »
Hi Matthew,

Unfortunately, the display is not capable of having one side or portion of the display have a blinking effect, while leaving the other side alone. However, we can manipulate the commands and delays to help simulate this effect.

I would recommend adding a command in the display function, similar to how you've written, that writes to the DDRAM address as follows:
0x00:    'Test:       '
This allows you to have the data text you want displayed at all times.

Then, you can incorporate two commands in the loop function, also similar to how you've written, that also write to a DDRAM address that is on the right side of the display. For example:
0x08:   '    '
0x08:   'ON'
By writing those two commands to the same memory address in the loop function, you are overwriting that memory location every so often, which can help create the blinking effect, without having to manually re-write to the display each time.

I would also make sure the delay, for right after the data is latched, is set at most 1 millisecond. Anything over that, and it may not resemble the blinking effect you are looking for.


I have attached some screenshots of code that work for an Arduino Uno, based on my recommendations above, that may help paint a clearer picture.

Hope this helps!





 

 

NHD-0216CW-AY3 8-bit Parallel 8080, Text on Display Issue

Started by forteyBoard OLEDs

Replies: 14
Views: 11755
Last post March 09, 2015, 02:23:51 PM
by Retheesh_M
Safe to run NHD-0216CW-AB3 displays at 3.3V long-term?

Started by bluemountainBoard OLEDs

Replies: 2
Views: 4215
Last post January 14, 2015, 12:19:16 PM
by bluemountain
NHD-0216CW-AB3 dots underneath characters

Started by cprobertBoard OLEDs

Replies: 0
Views: 2604
Last post November 19, 2015, 10:26:39 AM
by cprobert
NHD-0216CW-AB3 displaying wrong chracters

Started by The Fat BastidBoard OLEDs

Replies: 0
Views: 1734
Last post April 13, 2017, 11:41:11 PM
by The Fat Bastid
NHD-0216CW module using SPI - Question

Started by atlantaswlBoard OLEDs

Replies: 9
Views: 7710
Last post August 07, 2015, 08:04:23 AM
by Paul_B