Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

for() crashes with decrements when testing a sketch uploaded to Arduino Uno

2 posters

Go down  Message [Page 1 of 1]

Lazlo_Lozla



When I use a decrease in the stratum for(i=3; i>0; i--) keeps flashing the LED in the 0 position. And the sketch is blocked, it doesn't come out there

Defran

Defran

i>0 is not a limit, try i<4 for instance.

Lazlo_Lozla likes this post

Lazlo_Lozla



Yes. The mistake was mine. I didn't write the sketch correctly. Thank you.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum