Android Question Make a delay loop

mmrafiei

Member
hi,

how can i make a delay loop for b4a.

b4a not b4r

for example in arduino we can use this code for make an delay time.
arduino code:
void loop{

digitalWrite(LedPin, High);

Delay(1000);

digitalWrite(LedPin, LOW);

Delay(1000);

}

this code make a delay time for ever
 

Cableguy

Expert
Licensed User
Longtime User
The code you posted is mostly incorrect in all platforms including Arudino.

You should use Sleep(1000) in B4X.
Hmmmm ... so is your spelling...
It's Arduino... but I think the message went through...
 
Upvote 0
Top