This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int sig = 0; | |
int spd=255; //1~255の値にする | |
void setup(){ | |
Serial.begin(9600); | |
pinMode(2,OUTPUT);//左モーター用ドライバピン | |
pinMode(4,OUTPUT);//左モーター用ドライバピン | |
pinMode(7,OUTPUT); //右モーター用ドライバピン | |
pinMode(8,OUTPUT); //右モーター用ドライバピン | |
motor_stop(); |