Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- pinMode(9, OUTPUT);
- pinMode(10, OUTPUT);
- pinMode(11, OUTPUT);
- }
- void loop() {
- for(int i=0;i<=255;i++)
- {
- //analogWrite(9, i);
- //analogWrite(10, i);
- analogWrite(11, i);
- delay(5);
- }
- for(int i=255;i>=0;i--)
- {
- //analogWrite(9, i);
- //analogWrite(10, i);
- analogWrite(11, i);
- delay(5);
- }
- delay(2000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement