bir buton
7 led
butona bastığımda led çalışma şekli değişecek
en son başa dönecek
ancak her buton komutunda sürekli döngüyü çalıştıramıyorum
döngü eklediğimde buton kontrolü iptal oluyor (while , ve for komutlarını denedim)
döngü eklemez isem tek çalışıyor
her buton bastığımda butondaki kodun sürekli döngüde kalmasını nasıl sağlarım
Google Translate says:
a button
7 leds
When I press the button, the LED working mode will change.
will eventually return to the beginning
but I can't get the loop to run continuously on every button command
When I add a loop, the button control is canceled (I tried the while, and for commands)
If I don't add a loop it only works
How do I make the code in the button always loop every time I press the button?
Please post in English. If you cannot write in English, then use a translation tool, for example Google Translate.
Please post your code. If we cannot see the problem, it is hard for us to advise you.
You can use millis() function.
Millis() fonksiyonunu deneyebilirsin.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.