SHARE
TWEET

Untitled

a guest Dec 11th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int ledPin = 9;
  2.  
  3. void setup() {
  4.   // put your setup code here, to run once:
  5.  
  6. }
  7.  
  8. void loop() {
  9.   for (int i=0; i <= 255; i++){
  10.     analogWrite(ledPin, i);
  11.     delay(50);
  12.   }
  13.   for (int i=255; i >= 0; i--){
  14.     analogWrite(ledPin, i);
  15.     delay(50);
  16.   }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top