TEXT 225
S8 ABBASI Guest on 14th October 2023 08:48:38 AM
  1. #define pot A2
  2. #define mot  7
  3.  
  4. void setup()
  5. {
  6.   pinMode(mot,OUTPUT);
  7. }
  8.  
  9. void loop()
  10. {
  11.   int i = analogRead(pot);
  12.   i = (i*255)/1023;
  13.   analogeWrite(mot,i);
  14.  
  15.  
  16. }

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.