TEXT 100
S8 ABBASI Guest on 14th October 2023 08:54:17 AM
  1.  
  2. #define pot A2
  3. #define mot  6
  4.  
  5. void setup()
  6. {
  7.   pinMode(mot,OUTPUT);
  8. }
  9.  
  10. void loop()
  11. {
  12.   int i = analogRead(pot);
  13.   i = (i*255)/1023;
  14.   analogeWrite(mot,i);
  15.  
  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.