Last active
November 3, 2015 14:45
-
-
Save marcotchella/8141f0d6f9da69987243 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
03/11/2015 | |
Controle de LED RGB com Arduino UNO | |
Mais informações em: | |
https://fazerlab.wordpress.com/ | |
*/ | |
void setup() { | |
pinMode(11, OUTPUT); | |
pinMode(10, OUTPUT); | |
pinMode(9, OUTPUT); | |
digitalWrite(11, HIGH); | |
digitalWrite(10, HIGH); | |
digitalWrite(9, HIGH); | |
} | |
void loop() { | |
analogWrite(9, 0); //vermelho | |
analogWrite(10, 100); //verde | |
analogWrite(11, 100); //azul | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment