Display 4X40 Generic
Moderator: Benj
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
Display 4X40 Generic
Hi!MM!
Just bougth and install. MM really nice job But:
I made a test with 4X40 LCD. There is a bug. Problem with moving to line 2,3 and write double on same line and nothing on line 2 and 3. Even in simulation and "real world".
Best regard
Jorgen
Just bougth and install. MM really nice job But:
I made a test with 4X40 LCD. There is a bug. Problem with moving to line 2,3 and write double on same line and nothing on line 2 and 3. Even in simulation and "real world".
Best regard
Jorgen
- Attachments
-
- 876TestSlet.fcfx
- (7.38 KiB) Downloaded 378 times
-
- Posts: 444
- Joined: Tue Apr 15, 2014 4:19 pm
- Location: Kajaani, Finland
- Has thanked: 345 times
- Been thanked: 227 times
Re: Display 4X40 Generic
Hi!
Youve got your x and y:s messed, the y cordinate should be changed to get line 2,3,4. Not the x. But the text coming out twice happens on the v6 when opening same flowchart (which funny enough, still seems to work fine even tough v7 file is opened? ).... so its too a v6 bug?
EDIT: Happens too on V6 when reconstructed totally using only v6 components. So its too a V6 and V7 bug on the LCD base component.
Youve got your x and y:s messed, the y cordinate should be changed to get line 2,3,4. Not the x. But the text coming out twice happens on the v6 when opening same flowchart (which funny enough, still seems to work fine even tough v7 file is opened? ).... so its too a v6 bug?
EDIT: Happens too on V6 when reconstructed totally using only v6 components. So its too a V6 and V7 bug on the LCD base component.
Ill just keep the good work up!
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
Re: Display 4X40 Generic
Hi Estdriver!
Youve got your x and y:s messed, the y cordinate should be changed to get line 2,3,4. Not the x. I tryed to change still not work
Yes I just to test it in fc6 also, same problem there. Mealwhile I remember this issue before, there is a bug:
viewtopic.php?f=54&t=15032&p=61276&hilit=opengl#p61276
So this is not corrected in in later version of FC6 when I have the problem now. Both in FC6 and 7. Dont know if I can use the fix from above in FC7??
Jorgen
Youve got your x and y:s messed, the y cordinate should be changed to get line 2,3,4. Not the x. I tryed to change still not work
Yes I just to test it in fc6 also, same problem there. Mealwhile I remember this issue before, there is a bug:
viewtopic.php?f=54&t=15032&p=61276&hilit=opengl#p61276
So this is not corrected in in later version of FC6 when I have the problem now. Both in FC6 and 7. Dont know if I can use the fix from above in FC7??
Jorgen
Re: Display 4X40 Generic
Hi Jorgen!
Try this version. It works for me.
Bela
Try this version. It works for me.
Bela
- Attachments
-
- 876TestSlet_2.fcfx
- (7.38 KiB) Downloaded 411 times
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
Re: Display 4X40 Generic
Hi Lagoda!
Now it write on all line. I saw your correction for line 2 and 3 thank´s, but still get the text double, but really strange it work by you???
I like to hear if anybody have succes with Lagoda´s correction, please.
I see the text twice in the same line. Even in simulation and on the display. I had the same problem previus in FC6 also, and after reinsall of FC6 I have the same again, even if I use the correction.
The display work fine with columns up to max. 20 as soon I start to increase over that, the double come. I think there is a bug for adjustment of columns.
Hopefully MM team could help with fix for FC6 and FC7. I need it in a project I just started in FC7..
But thank´s for your try.
Br.
Jorgen
Now it write on all line. I saw your correction for line 2 and 3 thank´s, but still get the text double, but really strange it work by you???
I like to hear if anybody have succes with Lagoda´s correction, please.
I see the text twice in the same line. Even in simulation and on the display. I had the same problem previus in FC6 also, and after reinsall of FC6 I have the same again, even if I use the correction.
The display work fine with columns up to max. 20 as soon I start to increase over that, the double come. I think there is a bug for adjustment of columns.
Hopefully MM team could help with fix for FC6 and FC7. I need it in a project I just started in FC7..
But thank´s for your try.
Br.
Jorgen
- Attachments
-
- Picture_Display.docx
- (126.31 KiB) Downloaded 399 times
Re: Display 4X40 Generic
Hi Jorgen!
I'm sorry. I was careless. You're right.
Otherwise, a 4x40 LCD module normally operate two separate LCD controller (for example: ST 7066) with separate enable pin E1 and E2, but the LCD interface of FC7 use only one.
Therefore, it could simulate with two 2x40 LCDs.
Lagoda
I'm sorry. I was careless. You're right.
Otherwise, a 4x40 LCD module normally operate two separate LCD controller (for example: ST 7066) with separate enable pin E1 and E2, but the LCD interface of FC7 use only one.
Therefore, it could simulate with two 2x40 LCDs.
Lagoda
- Attachments
-
- 876TestSlet_3.fcfx
- (9.13 KiB) Downloaded 395 times
-
- Posts: 444
- Joined: Tue Apr 15, 2014 4:19 pm
- Location: Kajaani, Finland
- Has thanked: 345 times
- Been thanked: 227 times
Re: Display 4X40 Generic
Another demostration of this bug writing 40 chars only to display.... V6, but works same on V7.
- Attachments
-
- V6_test_lcd_base.fcfx
- (4.74 KiB) Downloaded 398 times
Ill just keep the good work up!
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
Re: Display 4X40 Generic
Hi MM!
Kindly request.
Please is it possible to do something with this bug I have startet a project where I use this display 4x40
An I cant Continue before it work correctly.
Best regard
Jorgen
Kindly request.
Please is it possible to do something with this bug I have startet a project where I use this display 4x40
An I cant Continue before it work correctly.
Best regard
Jorgen
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- 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: Display 4X40 Generic
Hmmmm,
These generic alphanumeric displays have an 80 byte buffer built into them.
For say a 2 x 20 display you can see 40 characters or 50% of the buffer. Line 0 goes from buffer location 0 to 39 and Line 1 goes from location 40 to 79. The scroll command allows you to move back and forth in terms of the portion of the buffer you can see on the display.
I can see how a 2 line 40 character display might make sense but a 4 line 40 character display can not work with this 80 byte character limitation. As Logoda says you could do this using two controllers and two enable pins.
Are you trying to control a specific display or are you just using the simulation? My guess is that the setting 4 x 40 should not be allowed. Or if it is allowed then we need to expose an extra enable pin. To work around this you could use two 2 x 40 character display components and this would work just as well. All the pins can be shared between the two components as long as the enable pins are unique.
If there is a specific display then can you attach a link or a datasheet and we can take a look to make sure it's not a game changer.
These generic alphanumeric displays have an 80 byte buffer built into them.
For say a 2 x 20 display you can see 40 characters or 50% of the buffer. Line 0 goes from buffer location 0 to 39 and Line 1 goes from location 40 to 79. The scroll command allows you to move back and forth in terms of the portion of the buffer you can see on the display.
I can see how a 2 line 40 character display might make sense but a 4 line 40 character display can not work with this 80 byte character limitation. As Logoda says you could do this using two controllers and two enable pins.
Are you trying to control a specific display or are you just using the simulation? My guess is that the setting 4 x 40 should not be allowed. Or if it is allowed then we need to expose an extra enable pin. To work around this you could use two 2 x 40 character display components and this would work just as well. All the pins can be shared between the two components as long as the enable pins are unique.
If there is a specific display then can you attach a link or a datasheet and we can take a look to make sure it's not a game changer.
At the moment I am seeing this as a new feature so I will try and add for v7 but for v6 you will probably have to use the 2 display workaround.Will V6 get this fix too on update?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
Re: Display 4X40 Generic
Hi Ben!
Thank´s for reply.
Meanwhile I have worked a bit more with the display. I can see that the have two controller.
So a 4 line display is actually 2x 2 lininier which is put together and therefore need one for receipt 2 places. probably why it writes fine when I select 2 x40
As you write there should probably made a special component to this 4x40. I just thought it was possible to use now when I am in config for these display is able to change it to 4x40
Ben I do as I did in a previous project, for my 4x40 display project, I use 2 time 2x40 line and an extra ack for disp. 2
Thank´s for care..
By the way FC7 look really good,nice job, hope we not get to much bug´s.
Br
Jorgen
Thank´s for reply.
Meanwhile I have worked a bit more with the display. I can see that the have two controller.
So a 4 line display is actually 2x 2 lininier which is put together and therefore need one for receipt 2 places. probably why it writes fine when I select 2 x40
As you write there should probably made a special component to this 4x40. I just thought it was possible to use now when I am in config for these display is able to change it to 4x40
Ben I do as I did in a previous project, for my 4x40 display project, I use 2 time 2x40 line and an extra ack for disp. 2
Thank´s for care..
By the way FC7 look really good,nice job, hope we not get to much bug´s.
Br
Jorgen