View previous topic :: View next topic |
Author |
Message |
PeterM
Joined: 09 Jun 2008 Posts: 118
|
|
Back to top |
|
|
apam
Joined: 07 Sep 2009 Posts: 20
|
Posted: Mon Sep 01, 2014 5:55 pm Post subject: |
|
|
Hi PeterM,
I need your help, do you know how to make sliding text or writing text to the next line and keep your original text before? For example, an extract from the UART chronologically.
Thank you for your response. |
|
Back to top |
|
|
PeterM
Joined: 09 Jun 2008 Posts: 118
|
Posted: Tue Sep 02, 2014 1:57 am Post subject: |
|
|
Apam
Are you talking about having a Scrolling Display of text
as the text reaches the bottom of the screen you add a new
line and scroll the text up one line ?
If so you could store the text in some type of array.
Move the data in and out in the order you receive them from the array
and then output the array to the LCD.
I have some experience in the inner workings of the FT800 but
not an expert in some of the graphic commands.
P.S. Don't delete your post this time _________________ Peter |
|
Back to top |
|
|
apam
Joined: 07 Sep 2009 Posts: 20
|
Posted: Tue Sep 02, 2014 7:08 am Post subject: |
|
|
Yes, I mean this, use the data array also occurred to me. I thought that going to make it easier than use the much memory for the string fields. |
|
Back to top |
|
|
PeterM
Joined: 09 Jun 2008 Posts: 118
|
Posted: Tue Sep 02, 2014 9:27 am Post subject: |
|
|
I realise you don't want to use much Ram but I don't know if you could possibly read the incoming data
and display it on the LCD, but as you get to the bottom somehow move the whole LCD image UP and
add the new data at the last line. I wonder if Cmd_Append can be used or somehow save the Display List
and re-use it. _________________ Peter |
|
Back to top |
|
|
PeterM
Joined: 09 Jun 2008 Posts: 118
|
Posted: Tue Sep 02, 2014 9:42 am Post subject: |
|
|
I emailed someone to see if he has some ideas to help, may
take a day or so till I get a reply. _________________ Peter |
|
Back to top |
|
|
PeterM
Joined: 09 Jun 2008 Posts: 118
|
Posted: Tue Sep 02, 2014 11:49 pm Post subject: |
|
|
Apan
Here is a reply I just received.
Quote: |
I'll need to have a think on the best way but one way that came to mind would be to write each line into the FT800's RAM_G. That way you don't need to store all the text in the MCU.
Reserve a different section of RAM_G for each line of text on the screen (let's say 10 lines for example so 10 blocks of RAM) and keep a table of: index (1-10), start addr, length
Each time the MCU has a new line of text, it could create a DL to display each new line of text and store it into the next RAM_G section in a circular buffer type of arrangement. i.e. put in next block wrapping round at 10 to overwrite oldest entry. The method shown in our Gauges example can be used (I am doing an appnote with an example of append, you can find the code below which does something similar)
Now, the MCU would use ten Append commands to create a final display list where the text is all stored in the RAG_G. It would keep a second pointer to define the order in which it ran the 10 appends and would add in the coordinates over SPI.
The downside is that the MCU would have quite a few different indexes to keep track of. I'm doing something similar with a scrolling graph but each case is going to be quite different if it's to be efficient for the MCU.
There might be a better way, if I think of anything I'll let you know. |
_________________ Peter
Last edited by PeterM on Wed Sep 03, 2014 9:38 am; edited 1 time in total |
|
Back to top |
|
|
apam
Joined: 07 Sep 2009 Posts: 20
|
Posted: Wed Sep 03, 2014 7:54 am Post subject: |
|
|
Hi PeterM,
it is a good idea, i will try to create some example. Thanks for idea. |
|
Back to top |
|
|
jhulsbergen
Joined: 08 Nov 2006 Posts: 3
|
Posted: Wed Oct 01, 2014 7:12 pm Post subject: |
|
|
Hello Peter,
Do you have the latest code for the FT800 for me. I follow your discusions about the FT800 for a long time and i will try the code on a test board.
Can you send me the code to info at jahuls-electronica dot nl
Jaap |
|
Back to top |
|
|
|