RA6963 controller
-
- Posts: 53
- Joined: 16 Mar 2017 20:48
RA6963 controller
Dear All,
I working with the software and my MCU is STM32F407VG , graghic controller RA6963 and no problem but for refresh and update new data on LCD I've a problem.
I used Draw(&Screen) but the command first clear all of the screen and then update new data. this is a problem because screen winking and flush.
is it another method for refresh screen data?
I working with the software and my MCU is STM32F407VG , graghic controller RA6963 and no problem but for refresh and update new data on LCD I've a problem.
I used Draw(&Screen) but the command first clear all of the screen and then update new data. this is a problem because screen winking and flush.
is it another method for refresh screen data?
H.Kian
Best Regards
Best Regards
- dusan.poluga
- mikroElektronika team
- Posts: 780
- Joined: 02 Feb 2017 14:21
Re: RA6963 controller
Hi,
Their are two ways to redraw the data.
1) First method
-Store old data in a variable.
-Set the font color to the color of the background.
-Draw the previously stored text.
-Again set the font color.
-And draw new data
2) Second method
-Draw a rectangular shape around the data.
-Every time you redraw the display firstly redraw the rectangular shape.
Best Regards,
Their are two ways to redraw the data.
1) First method
-Store old data in a variable.
-Set the font color to the color of the background.
-Draw the previously stored text.
-Again set the font color.
-And draw new data
2) Second method
-Draw a rectangular shape around the data.
-Every time you redraw the display firstly redraw the rectangular shape.
Best Regards,
Dusan Poluga.
-
- Posts: 53
- Joined: 16 Mar 2017 20:48
Re: RA6963 controller
Dear Dusan,
Thanks, please kindly send me a example code for your first way.
Thanks
Thanks, please kindly send me a example code for your first way.
Thanks
H.Kian
Best Regards
Best Regards
-
- Posts: 53
- Joined: 16 Mar 2017 20:48
- dusan.poluga
- mikroElektronika team
- Posts: 780
- Joined: 02 Feb 2017 14:21
Re: RA6963 controller
Hi,
Here is the sample code for updating the label.
Best Regards,
Here is the sample code for updating the label.
Code: Select all
void updateLabel(TLabel *lbl, char *str){
Glcd_Set_Font_Adv(lbl->FontName, 0, _GLCD_HORIZONTAL);
Glcd_Write_Text_Adv(lbl->Caption, lbl->Left, lbl->Top);
strcpy(lbl->Caption, str);
DrawLabel(lbl);
}
Dusan Poluga.
-
- Posts: 53
- Joined: 16 Mar 2017 20:48
Re: RA6963 controller
Dear Dusan,
Thanks. I tested your example code on the MCU but no change on the LCD.
when I use the code before Draw(&Screen) again the LCD is in Flush.
when I don't Draw(&Screen) the Label data without clear last data overwrite and Label data is black finally.
Thanks. I tested your example code on the MCU but no change on the LCD.
when I use the code before Draw(&Screen) again the LCD is in Flush.
when I don't Draw(&Screen) the Label data without clear last data overwrite and Label data is black finally.
- Attachments
-
- 20170711_162108.jpg (73.32 KiB) Viewed 9025 times
H.Kian
Best Regards
Best Regards
-
- Posts: 53
- Joined: 16 Mar 2017 20:48
Re: RA6963 controller
Dear Dusan,
Thanks ,Now it is ok,I've some modify your code . But it is with some flush LCD yet. But it is better than last my code.
Thanks ,Now it is ok,I've some modify your code . But it is with some flush LCD yet. But it is better than last my code.
H.Kian
Best Regards
Best Regards
- dusan.poluga
- mikroElektronika team
- Posts: 780
- Joined: 02 Feb 2017 14:21
Re: RA6963 controller
Hi,
Can you post a image of your screen? So i can see how it looks now with the modified code.
Best Regards,
Can you post a image of your screen? So i can see how it looks now with the modified code.
Best Regards,
Dusan Poluga.
-
- Posts: 53
- Joined: 16 Mar 2017 20:48
Re: RA6963 controller
Dear Dusan,
Thanks for your reply, Please see in attachment my code and a video from LCD.
Now for update what about other tools? such as Button,ProgressBar...
Thanks for your reply, Please see in attachment my code and a video from LCD.
Now for update what about other tools? such as Button,ProgressBar...
- Attachments
-
- 20170712_115322.jpg (81.37 KiB) Viewed 8866 times
-
- code.JPG (43.53 KiB) Viewed 8866 times
H.Kian
Best Regards
Best Regards
-
- Posts: 53
- Joined: 16 Mar 2017 20:48
- dusan.poluga
- mikroElektronika team
- Posts: 780
- Joined: 02 Feb 2017 14:21
Re: RA6963 controller
Hi,
The text on the top right corner of the number needs to be cleared first before redrawing it the first time.
Redraw the text in the top right corner with empty spaces.
Best Regards,
The text on the top right corner of the number needs to be cleared first before redrawing it the first time.
Redraw the text in the top right corner with empty spaces.
Best Regards,
Dusan Poluga.
-
- Posts: 53
- Joined: 16 Mar 2017 20:48
Re: RA6963 controller
Dear Dusan,
Thanks for your reply. Sorry if possible send me a example code.
Very thanks.
Thanks for your reply. Sorry if possible send me a example code.
Very thanks.
H.Kian
Best Regards
Best Regards
- dusan.poluga
- mikroElektronika team
- Posts: 780
- Joined: 02 Feb 2017 14:21
Re: RA6963 controller
Hi,
The same code can be used that is used to update the label. Except you would just put white spaces instead of text.
Best Regards,
The same code can be used that is used to update the label. Except you would just put white spaces instead of text.
Code: Select all
updateLabel(your_labe_name, " ");
Dusan Poluga.