Formatting in " jm_fullduplexserial" ?
msiriwardena
Posts: 301
I am trying to understand the formatting. i have tried formatting as per
directions in jm-fullduplex serial driver.
I changed the formatting in (Temp-humidity code as seen below)
pub update_temp(tf)
hmi.fstr2(string("temp.txt=\q%d\xB0F\q%3c"), tf, $FF)
pub update_humidity(rh)
hmi.fstr2(string("humid.txt=\q%d\%\q%3c"), rh, $FF)
as now understand the formatting better and \q - for(" " ), (%) for percent, easier understand t than
hex convertions.
The question I have is " xB0F ", I have looked at hex , ascii and other character conversions but I have not been able to find what "xB0F " translate to.
I would like some help
Thank you,
siri
Comments
As I have mentioned before (hint, hint), you can always redirect something that is ultimately going to the Nextion to PST to ensure you get what you want. This image explains it all.
\xB0 prints the degrees symbol.
And again: Experiment. Experiment. Experiment. It would have taken you far less time to do the experiment I just demonstrated than it took you to compose your request for help.
@JonnyMac
Thanks again for the help and i have been experimenting but I just could not resolve
it because I thought the xB0F as single command.Now I know to break them apart .
Thank you again,
siri