Newhaven Display Forum

Newhaven Products => OLEDs => Topic started by: alfaudio on May 17, 2019, 02:14:51 AM

Title: Weird display on NHD-0216CW-AG3 when using Arduino LiquidCrytal library
Post by: alfaudio on May 17, 2019, 02:14:51 AM
I am trying to working on a NHD-0216CW-AG3 with an ATMEGA2560.   I tried first with i2c, everything seem to work fine, except that the datasheet states that in i2c mode, it doesn't support 5V VCC.

So I tried to use 6800 4 bit Parallel mode, and I got all the display mirrored, also the display direction was inversed, when I do lcd.rightToleft(), I got display starts from left to right.  Any one has any experience on how to make it work with LiquidCrytal library?
Title: Re: Weird display on NHD-0216CW-AG3 when using Arduino LiquidCrytal library
Post by: Alee_S on May 17, 2019, 12:50:25 PM
Hello there!

The Arduino LiquidCrystal Library is configured for HD44780 or ST7066U or compatible controllers, and this particular OLED uses the US2066 controller, which is not compatible to the Hitachi chip. This may be why you are experiencing issues using the Arduino functions for this display.

If you would like some sample code, please visit our Github link below for our Slim character OLEDs with a US2066 controller chip:
https://github.com/NewhavenDisplay/NHD_US2066 (https://github.com/NewhavenDisplay/NHD_US2066)

Hope this helps!