9723| 4
|
[求助] 如何控制小车转弯的大小 |
digitalWrite( 4 , HIGH ); digitalWrite( 7 , HIGH ); analogWrite(5 , 100); analogWrite(6 , 100); 后退 digitalWrite( 4 , LOW ); digitalWrite( 7 , LOW ); analogWrite(5 , 100); analogWrite(6 , 100); 左转: digitalWrite( 4 , HIGH ); digitalWrite( 7 , HIGH ); analogWrite(5 , 150); analogWrite(6 , 100); 右转: digitalWrite( 4 , HIGH ); digitalWrite( 7 , HIGH ); analogWrite(5 , 100); analogWrite(6 , 150); 原地打转: digitalWrite( 4 , HIGH ); digitalWrite( 7 , HIGH ); analogWrite(5 , 100); analogWrite(6 , -100); |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed