
Originally Posted by
Andre_Pretorius
Hi there
i am trying to use serin to read a array of data from a UPS, at this stage i have used all the other serial ports, can someone give me a hint if there is a easer way instead of typing in the whole array , i have tried {str array/size} but get compile errors also my timeout does not want to work
Ann help would be appreciated
Well, if you tried {str array/size}, then you may need to consult your manual...
Try [ str array\size ] instead.
As far as the array goes, a simple loop will do
Code:
t var byte
for t = start (0 whatever) to finish (100 whatever)
debug [ ups(t) ]
next t
Bookmarks