?? motor_test.pde
字號(hào):
/*
* Motor test for the Asuro
*/
#include <Asuro.h>
Asuro asuro = Asuro();
void setup()
{
Serial.begin(9600);
}
void loop()
{
// test motion patterns
asuro.driveCircular (255);
int var = 0;
while (var < 10){
asuro.driveSquare (100,255);
var++;
}
//backwards and fowards test engines
asuro.setMotorSpeed(255,255);
//forwards
asuro.setMotorDirection (1, 1);
delay (500);
asuro.setMotorDirection (0,0);
delay (500);
asuro.setMotorSpeed(0,0);
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -