Please specify what version of Turing you are using
<4.1.1>
Sponsor Sponsor
Insectoid
Posted: Thu Nov 03, 2016 9:30 am Post subject: RE:Can you assign a variable as a delay?
delay() only takes integer values. You are trying to give it real values.
If you need precision to fractions of a millisecond, then you will need to convert the real to an int on the fly by calling delay (int (time1)). Otherwise, just change time1 to an int and you'll be fine.
lordroba
Posted: Sat Nov 05, 2016 3:38 pm Post subject: Re: Can you assign a variable as a delay?