/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
The circuit:
* LED connected from digital pin 13 to ground.
* Note: On most Arduino boards, there is already an LED on the board
connected to pin 13, so you don't need any extra components for this example.
Created 1 June 2005
By David Cuartielles
http://arduino.cc/en/Tutorial/Blink based on an orginal by H. Barragan for the Wiring i/o board
*/
int ledPin1 = 13; // LED connected to digital pin 13
int ledPin2 = 8; // LED connected to digital pin 13
// The setup() method runs once, when the sketch starts
void setup() {
// initialize the digital pin as an output:
pinMode(ledPin1, OUTPUT);
pinMode(ledPin2 , OUTPUT);
}
// the loop() method runs over and over again,
// as long as the Arduino has power
void loop()
{
digitalWrite(ledPin1, HIGH); // set the LED on
digitalWrite (ledPin2,LOW);
delay(1000); // wait for a second
digitalWrite(ledPin1, LOW); // set the LED off
digitalWrite(ledPin2, HIGH);
delay(1000); // wait for a second
}
voila le programme que j'ai fait mais je besoin de réaliser la transition mais je ne sais pas comment le faire pour mieux m'expliquer c'est que la couleur passe par une autre petit à petit sans que l'autre ne s'éteigne :-[