Hello
I want to let my mBot play tone just like racing signal in 3 sec and the same time check whether “button pressed”.
if button is pressed in 3 sec then mBot run ahead.if not, mBot run back.
I want to do this with “play tone on note xx” and “repeat 10” and “if”.
The flow is
-
" play tone on note C3 " then check 10 times “button pressed” in 1sec.
-
" play tone on note C3" and check 10 times “button pressed” in 1sec again.
-
" play tone on note C4" and check 10 times “button pressed” in 1sec again.
-
if “button pressed” in last 3 step, mBot run ahead. if “button not pressed” in last 3 step, mBot run back.
But I can not find “play tone on note xx” in mblock 3.2.2 now.
There is only “play tone on note xx beat xx”.
If I use this,i can not check whether “button pressed” at the same time.
Can anyone help me. Thank you.