I have a simple problem but i don't can solve.
If pwr >= 255 always go to 0 and no to 255.Why happen this?Code:pwr var byte If up = 1 Then PAUSE 50 pwr = pwr + 1 If pwr >= 255 Then pwr = 255 Endif
I have a simple problem but i don't can solve.
If pwr >= 255 always go to 0 and no to 255.Why happen this?Code:pwr var byte If up = 1 Then PAUSE 50 pwr = pwr + 1 If pwr >= 255 Then pwr = 255 Endif
Bookmarks