Home > other >  Gesture sensor drive motor rotation problem arduino environment have the procedures for the bosses t
Gesture sensor drive motor rotation problem arduino environment have the procedures for the bosses t

Time:10-11

If (data=https://bbs.csdn.net/topics/=GES_LEFT_FLAG)//identify left hand gestures to let motor rotate the
{
Flag_open=1;
Serial. Println (" left ");
While (flag_open)
{
AnalogWrite (motorPin, 100);//motor rotation
If (data=https://bbs.csdn.net/topics/=GES_RIGHT_FLAG)//identify the right hand potential jump out of the loop to do other operations
{
Flag_open=0;
}
}

The question now is to do the right potential cannot enter the if will not jump out of the while loop
There are bosses know look
  • Related