Bearonic:
?
Maybe you should try the French forum. But read the "How to use this forum" before!
This forum is monsioned "french arduino forum" i will post it her
GypsumFantastic:
You need to think in a more structured way.Your system needs 3 modes. (off, on, flashing)
Define a variable to remember which mode you're in.
Write code that increments this variable when you press the button and goes back to the first mode when necessary.
Use Serial.print statements to verify it's working.
Then write the code for each mode, that makes the LED do what you need.
I don't want to tell you too much, for the good of your education!
Good luck!
that is what i try while 3hours... or teatcher help other peapoles but not me... he say"go to internet..." but code the programe to other peapoles...
he juste tel me "yep you can use for loop" and my partner does anything...
PaulS:
for(i=0; i<3;1++ )What good does it do to increment the value of 1? 1++ returns 2. But, so what? You are NOT incrementing the value of i.
I... Hum just want to increment the I value for switch mode led ON, Flash,Off