Newhaven Display Forum

Newhaven Products => OLEDs => Topic started by: olek on February 25, 2015, 11:16:44 PM

Title: NHD-0420DZW HD44780 Compatible?
Post by: olek on February 25, 2015, 11:16:44 PM
Hi, I'd like to use the NHD-0420DZW-AG5 with an Arduino Mega using an existing library. Do these OLED displays use a Hitachi HD44780 compatible chipset?
Title: Re: NHD-0420DZW HD44780 Compatible?
Post by: Retheesh_M on February 26, 2015, 08:34:48 AM
Even though the OLED displays use our own proprietary controller, they are compatible with the existing Arduino libraries.  The only things that are slightly different are the initialization sequence and the execution time of the commands.

Here is an example for writing to a character display with an 8-bit interface: http://www.newhavendisplay.com/app_notes/8_bit_character_C.txt

This code can be used with your OLED display after you modify the delays based on the requirements of the OLED.

Edit: The example code above isn't Arduino code.  It is an example to help you understand how to use the OLED display.