Winstar and RayStar OLED 2004A whit WS0010 controller

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
kennethnilsen69
Posts: 101
Joined: Tue Sep 01, 2015 9:37 pm
Been thanked: 14 times
Contact:

Winstar and RayStar OLED 2004A whit WS0010 controller

Post by kennethnilsen69 »

Hi I have some trouble getting text on more than 2 lines on these 4x20 OLED screens. on both Winstar and RayStar 4x20 displays whit WS0010 controller.

If I use LCD 4x20 (Adafruit, OLED) component
I get the following error:
Line 1 comes on line 1 (as it should)
Line 2 coming on line 2 (as it should)
Line 3 coming on line 2
Line 4 comes on line 2

If I use LCD (Generic) component
I get the following error:
Line 1 comes on line 1 (as it should)
Line 2 is not displayed
Line 3 coming on line 3 (as it should)
Line 4 is not displayed

this problem is just on OLED displays and not on standard crystal LCDs

Link til fc6 test project
https://dl.dropboxusercontent.com/u/209 ... _test.fcfx

Link til Display
http://www.tme.eu/en/details/rec002004a ... pp5n00000/

Anybody know what I'm doing wrong?

I use Arduino Mega 2560 and connects the display in 4 bit mode

kennethnilsen69
Posts: 101
Joined: Tue Sep 01, 2015 9:37 pm
Been thanked: 14 times
Contact:

Re: Winstar and RayStar OLED 2004A whit WS0010 controller

Post by kennethnilsen69 »

Is there no one who knows anything about this?

Thanks

Kenneth

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Winstar and RayStar OLED 2004A whit WS0010 controller

Post by Benj »

Hello,

I've not played with these displays so not aware of this issue. If you just stream out data to the display. e.g. keep sending out 'x' characters starting from 0,0 then do all the displays characters fill in or are there parts that never get a character?

If you eventually get 'x' characters everywhere then it's an addressing issue and we need to find out the right addresses for the characters.

If you don't eventually get characters everywhere then the display is doing something fundamentally different and we would need to investigate this.

Looking at the device datasheets it looks like the memory should be laid out as expected though they only show the memory layout for a 2-line display.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Winstar and RayStar OLED 2004A whit WS0010 controller

Post by Benj »

Aha just found this which looks interesting.
Addressing.jpg
Addressing.jpg (48.2 KiB) Viewed 5836 times
Try using the cursor command with Y as 0 and X as the hex value shown in the image to move to the start of a line.

The decimal addresses would be

Line0 - 0
Line1 - 64
Line2 - 20
Line3 - 84

kennethnilsen69
Posts: 101
Joined: Tue Sep 01, 2015 9:37 pm
Been thanked: 14 times
Contact:

Re: Winstar and RayStar OLED 2004A whit WS0010 controller

Post by kennethnilsen69 »

yes Benj you are the king :-). The table worked perfectly on Adafurit components. Moving corsor in X and not Y worked perfectly. :-)

I have a small isju with these:
every time I send the program over to the Arduino I must disconnect the power completely on it. Otherwise the display will not work properly (just lots of unreadable characters).

Is this something we can fix? not so serious but quite annoying

Post Reply