0 Bewertungen0% fanden dieses Dokument nützlich (0 Abstimmungen)
3 Ansichten6 Seiten
The setup routine runs once when you press reset: void setup() / / initialize the digital pin as an output. The loop routine runs over and over again forever: void loop().
The setup routine runs once when you press reset: void setup() / / initialize the digital pin as an output. The loop routine runs over and over again forever: void loop().
The setup routine runs once when you press reset: void setup() / / initialize the digital pin as an output. The loop routine runs over and over again forever: void loop().
void RGB_HIGH(){ digitalWrite(led_R, HIGH); // turn the LED on (HIGH is the voltage level) delay(90); // wait for a second digitalWrite(led_R, LOW); // turn the LED on (HIGH is the voltage level) delay(90);
digitalWrite(led_G, HIGH); // turn the LED on (HIGH is the voltage level) delay(140); // wait for a second
digitalWrite(led_G, LOW); // turn the LED off by making the voltage LOW delay(140);
digitalWrite(led_B, HIGH); // turn the LED on (HIGH is the voltage level) delay(180); // wait for a second
digitalWrite(led_B, LOW); // turn the LED off by making the voltage LOW delay(180); // wait for a second }
void blue(){
digitalWrite(led_3_B, HIGH); // turn the LED on (HIGH is the voltage level) delay(100); // wait for a second digitalWrite(led_3_B, LOW); // turn the LED off by making the voltage LOW delay(100);