Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define REDPIN 5
- #define GREENPIN 6
- #define BLUEPIN 3
- void setup() {
- pinMode(REDPIN, OUTPUT);
- pinMode(GREENPIN, OUTPUT);
- pinMode(BLUEPIN, OUTPUT);
- }
- void loop() {
- analogWrite(REDPIN, 255);
- analogWrite(BLUEPIN, 0);
- analogWrite(GREENPIN, 0);
- }
Add Comment
Please, Sign In to add comment