I have an arduino connected and it reads values from it. One is time and one is distance.
.
I think I would use the following:
data = sscanf('%i seconds')
data = sscanf('%f meters')
because the time data is an integer number and the distance data is has decimal numbers. However, I'm unsure how to utilise this properly. I'm trying to display these values into GUI edit text boxes so I need to be able sort these properly.
Would I use an if statement? I have tried
if a == sscanf('%i seconds') a = xelse a = yend
but this isn't working.
Best Answer