CPP 217
MIKAEEL7 Guest on 14th October 2023 08:50:20 AM
  1. #define motor_pin 3
  2.  
  3. void setup() {
  4.   pinMode(motor_pin, OUTPUT);
  5. }
  6.  
  7. void loop() {
  8.   for (int i = 0; i <= 255; i++) {
  9.     analogWrite(motor_pin, i);
  10.     delay(10);
  11.   }

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.