Skip to content

Instantly share code, notes, and snippets.

View shokai's full-sized avatar

Sho Hashimoto shokai

View GitHub Profile
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();