Dear mikroE team
Hi all,
I want the analog input of RA3 value on the SmartGLCD display, I use Visual GLCD V2.7.1.0 and
place T-Label on the screen under properties caption Text, how can I approach this to the value of the analog input of RA3.
I have a C code:
adc_rd = ADC_Read (2);
ByteToStr (adc_rd, txt);
T6963C_Write_Text (txt, 0, 0, T6963C_ROM_MODE_OR);
How do I get this in the caption Text box?
And not as a text on the T6963C screen because I use the Visual GLCD program with
MikroC Pro V7.2.0
Thanks a lot
EdTree
How can I put the value of ADC-Read on the Visual GLCD label
Re: How can I put the value of ADC-Read on the Visual GLCD l
Hi,
Basically, you can store the ADC value in a string and then copy that string to the Label that you defined in the Visual Glcd project.
Regards,
Filip.
Basically, you can store the ADC value in a string and then copy that string to the Label that you defined in the Visual Glcd project.
Regards,
Filip.
Re: How can I put the value of ADC-Read on the Visual GLCD l
Hello Filip,
It would help a lot an example on how to do this Label update.
Thank you!
LE: next day, the night was a good adviser
Let's say you get the "hours" from the RTCC. Then you do as below, where Label4 is the name of the label you need to update.
The Rtrim is needed because of the Strcpy.
It would help a lot an example on how to do this Label update.
Thank you!
LE: next day, the night was a good adviser
Let's say you get the "hours" from the RTCC. Then you do as below, where Label4 is the name of the label you need to update.
The Rtrim is needed because of the Strcpy.
Code: Select all
ByteToStr(hours, txt)
Strcpy(Label4_Caption, txt)
Rtrim(txt)
DrawLabel(@Label4)
The one who asks, learns and explores may look stupid for a second. The one who does not do that, stays stupid forever.
User thunderer on: RHCforum, elforum, mikroelektronika/Libstock, HOD, fanowar
User thunderer on: RHCforum, elforum, mikroelektronika/Libstock, HOD, fanowar