Driving a 16x4 LCD

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

Moderator: Benj

Post Reply
hypamat
Posts: 31
Joined: Wed Jul 16, 2014 11:38 pm
Has thanked: 6 times
Been thanked: 18 times

Driving a 16x4 LCD

Post by hypamat »

hi guys,
i have had no problems running a 16x2 lcd display, and i assumed that driving a 16x4 would be pretty much the same, and i also assumed that when i type in the cursor numbers i could simply put x0, y4 and it would write to the 4th line on the display, however this doesnt seem to be the case.
it does however work with line1 and line2 on the display.

is there any way to get around this?
thanks,
matt

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: Driving a 16x4 LCD

Post by JohnCrow »

Hi Matt

The y co-ordinates also run 0 to 3.
The bottom line is 3 not 4
4-20 Test.fcfx
(3.99 KiB) Downloaded 297 times
1 in 10 people understand binary, the other one doesn't !

hypamat
Posts: 31
Joined: Wed Jul 16, 2014 11:38 pm
Has thanked: 6 times
Been thanked: 18 times

Re: Driving a 16x4 LCD

Post by hypamat »

sorry, i did realise that, and thanks for your example, however im using a 16x4 display and the word "Hello" is 5 spaces in, is there any way around this? its on the 4th line now though!

thanks,
matt

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: Driving a 16x4 LCD

Post by JohnCrow »

Hi Matt

The 2x16 and 4x20 are the common types.
To use other layouts you need to use the generic LCD.
This lets you set the row and column config to suit your hardware.

It does not show in the main output components.
Click search on the main tool bar and search for LCD.
You need to goto component properties and set the row column to 4 & 16
4-16 Test.fcfx
(4.7 KiB) Downloaded 230 times
1 in 10 people understand binary, the other one doesn't !

Post Reply