TEXT 212
Amir 7 Guest on 14th October 2023 08:47:48 AM
  1. #define motor 3
  2. int i = 0;
  3. void setup() {
  4.   pinMode(motor,OUTPUT);
  5.  
  6. }
  7. void loop() {
  8.   if( i == 0){
  9.     for(i = 0; i <= 255;i++){
  10.       delay(10);
  11.       analogWrite(motor,i);
  12.     }
  13.   }
  14.   if(i == 255){
  15.     analogWrite(motor,255);
  16.   }
  17. }

Hightechrobo bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.