LCD – OLED interface

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
viki2000
Posts: 190
Joined: Mon Jul 07, 2014 9:38 am
Has thanked: 30 times
Been thanked: 77 times
Contact:

LCD – OLED interface

Post by viki2000 »

When I look at the OLED components, I see:
A) Inside of FlowCode 6: “LCD (Adafruit, OLED)” and “LCD 4x20 (Adafruit, OLED)”
B) Help File: “LCD (Adafruit, OLED) component”
What differences are between these 2 components?
Is it the second one 2), without 20x4 in its name, able to drive also OLED displays with other number of lines and other number of characters per line? If yes, then how? If not, then how can I drive 16x2 OLED display?
I see that both components have the same number of lines: 4 Data bits, RS, CS, Enable.
1) When I compare the above OLED components with “LCD (Generic)” and “LCD (Generic, 20x4)”, then I see are the same lines: 4 Data bits, RS, CS, Enable.
What is the difference between these LCDs and the above OLEDs? Timing, initialization, communication protocol?
2) I see many OLED displays in the market which have mentioned various interfaces as: MPU 8bit, MPU 4bit, 3 and 4-wire SPI and I2C, Parallel Interface 8080 and 6800.
When we use LCD and OLED components in FlowCode 6, and I see only 4bit for data, then which of the above interface is used? Is it 8080 or 6800? Is it any difference between MPU 8bit, MPU 4bit and Parallel Interface 8080 and 6800? For me MPU 8bit, MPU 4bit look as parallel interface.
Many OLED displays show in the datasheet only MPU 8 bit. Then how can I drive them with FlowCode when the components for LCD and OLED have only 4 bits?
I notice also the component LCD (I2C). It has only 2 data lines. Is it a 3-wire I2C?
What if I want to use 4-wire I2C LCD?
And If I need to use SPI LCD, then we do not have a component for it? Or how can we drive it? Writing the needed C code for it?
3) Many LCD and OLED displays claim the compatibility with HDD44780 driver, using a Sitronix driver, as for example ST7066U. Do you know and compatibility issues between FlowCode 6 and Sitronix driver when used in compatibility mode with HDD44780 driver and the LCD-OLED components inside the FlowCode?
4) I would like to understand the situation with FlowCode when I do not use only the recommended AdaFruit, but also some other LCD and OLED, let’s say 20x4 and 16x2, or generally speaking from 8x1 up to 20x4.
Here are some examples of 20x4:
a)http://www.tme.eu:
i. LCD: RAYSTAR OPTRONICS RC2004A-BIW-ESX (http://www.tme.eu/en/details/rc2004ab/l ... a-biw-esx/)
ii. OLED: RAYSTAR OPTRONICS REC002004AYPP5N00000 (http://www.tme.eu/en/details/rec002004a ... pp5n00000/)
b) http://www.newhavendisplay.com :
i. LCD: NHD-0420DZ-NSW-BBW (http://www.newhavendisplay.com/nhd0420d ... k1mq0g3qq6)
ii. OLED: NHD-0420DZW-AY5 (http://www.newhavendisplay.com/nhd0420d ... -4218.html)
c) http://www.crystalfontz.com :
i. LCD: CFAH2004A-TMI-JT (https://www.crystalfontz.com/product/CFAH2004ATMIJT)
ii. OLED: CFAL2004A-Y (https://www.crystalfontz.com/product/CFAL2004AY)
Which in fact seem to be the Winstar LCD, OLED. For example the Winstar WEH002004A OLED display (http://www.winstar.com.tw/products_deta ... &ProID=299).

Can we drive the above LCD, OLED with FlowCode LCD, OLED components?

User avatar
ionize
Posts: 25
Joined: Fri Aug 05, 2011 8:01 pm
Has thanked: 29 times
Been thanked: 11 times
Contact:

Re: LCD – OLED interface

Post by ionize »

Short answer: YES, no problem.

viki2000
Posts: 190
Joined: Mon Jul 07, 2014 9:38 am
Has thanked: 30 times
Been thanked: 77 times
Contact:

Re: LCD – OLED interface

Post by viki2000 »

I can confirm the YES above.
I purchased next LCD and OLED from http://www.tme.eu:
LCD: RAYSTAR OPTRONICS RC2004A-BIW-ESX (http://www.tme.eu/en/details/rc2004ab/l ... 4a-biw-esx/)
OLED: RAYSTAR OPTRONICS REC002004AYPP5N00000 (http://www.tme.eu/en/details/rec002004a ... pp5n00000/)
Both work easy with the LCD component on 4 bits from FlowCode.
By default the interface used by the displays is 6800, which is in fact the one inside the FlowCode LCD component.
I did not try the 8bit, but as long as 4bit works it should be no problem to work also in 8bit connection.
The OLED display has also the possibility to drive it in SPI protocol, but I did not try that yet.
There are small jumpers for communication protocol settings on the back of the display:
- Page 4 here: http://www.newhavendisplay.com/specs/NH ... ZW-AY5.pdf
- Page 14 here: http://www.lcd-module.de/fileadmin/pdf/doma/oled.pdf

viki2000
Posts: 190
Joined: Mon Jul 07, 2014 9:38 am
Has thanked: 30 times
Been thanked: 77 times
Contact:

Re: LCD – OLED interface

Post by viki2000 »

Worth to mention that I used the LCD Generic component for both Raystar LCD and OLED.
I just set the number of rows and columns and the hardware displays works.
I did not have to choose the OLED component (Adafruit) for Raystar OLED. The Raystar OLED works with classical LCD component on 4 bits.
LCD Generic
LCD Generic
LCD Generic.jpg (126.65 KiB) Viewed 7388 times

Post Reply