Advertisement
natchapon

ควย

Dec 7th, 2021 (edited)
1,502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.79 KB | None | 0 0
  1. 1.9
  2. void setup()  
  3. {
  4.     motor(1,100);    
  5. }
  6. void loop()
  7. {
  8.  
  9. }
  10.  
  11. 20
  12. void setup()  
  13. {
  14.     motor(2,50);
  15. }
  16. void loop()
  17. {
  18.    
  19. }
  20.  
  21. 21
  22. void setup()  
  23. {
  24.     motor(2,50);
  25. }
  26. void loop()
  27. {
  28.    
  29. }
  30.  
  31. 22
  32. void setup()  
  33. {
  34.     motor(1,-100);
  35.     motor(2,-100);
  36. }
  37. void loop()
  38. {
  39.    
  40. }
  41.  
  42. 23
  43. void setup()  
  44. {
  45.     motor(1,100);
  46.     motor(2,100);
  47.     sleep(1500);
  48.     ao();
  49.     sleep(1000);
  50.     motor(1,-100);
  51.     motor(2,-100);
  52.     sleep(1000);
  53.     ao();
  54. }
  55. void loop()
  56. {
  57.    
  58. }
  59.  
  60. 24
  61. void setup()  
  62. {
  63.     motor(2,100);
  64.     sleep(1000);
  65.     ao();
  66.     sleep(500);
  67.     motor(1,100);
  68.     sleep(1000);
  69.     ao();
  70.     sleep(500);
  71.     motor(1,-100);
  72.     motor(2,-100);
  73.     sleep(1000);
  74.     ao();
  75.     sleep(500);
  76.     beep();
  77.     beep();
  78.    
  79. }
  80. void loop()
  81. {
  82.    
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement