Skip to content

Instantly share code, notes, and snippets.

View mohamedmostafaa's full-sized avatar
🎯
Focusing on creation

MohamedMostafa mohamedmostafaa

🎯
Focusing on creation
View GitHub Profile
//It is a left side wall follower.
#include <AFMotor.h>
#include <SR04.h>
AF_DCMotor motor3(3, MOTOR34_64KHZ); // Define motor #3, 64KHz pwm
AF_DCMotor motor4(4, MOTOR34_64KHZ); // Define motor #4, 64KHz pwm
int WF_LEFT_US_SENSOR_TRIG = 18;
int WF_LEFT_US_SENSOR_ECHO = 17;