Thankyou for your support!
It's a general question, I want to understand if it's possible to run a part of code in loop while going on with the other code part.
I've had this great idea trying to understand the SRF08
The code is the following:
SDA Con P8
SCL Con P9
SRF08 Con 0xE0
CmdReg Con 0
LightReg Con 1
RangeReg Con 2
Light Var Byte
Range Var Word
i2cout SDA, SCL, SRF08, CmdReg, 
i2cin SDA, SCL, SRF08, LightReg, [Light, Range.HighByte, Range.LowByte]
Serout S_OUT, i9600, ["Light1 = 0x", HEX Light, ", Range1 = ", DEC Range, " cm, "]
Now I'd like to add some other lines of code (for example the light sequence I wrote in the first post).
Any chance I made you understand my doubt?