"When button pressed/released" block not working


#1

When using the block “When button pressed/released” in the new mBot programming software, the block fails to write arduino code on the right panel, as a result of this, it cannot perform requested procedures when uploaded to the mBot. However, whilst connected to the PC (via Cable), the programmed procedures manages to achieve the programmed script. If you are having similar troubles or have a solution, please post it on this forum. Thankyou.

P.S we cannot upload screenshots as "new users cannot upload pictures"
P.P.S we cannot upload screenshots of this error


#2

I’m having the same program. The “When Button pressed” block produces no arduino code.


#3

I don’t think you should use the “When button pressed” start block when not connected.
I solved this with a standard mBot Program with an if-block with in it.

It’s not optimal, but the you can get it to the arduino and it works.


#4

We were trying to make a matrix board show with words whe the button is pressed but if we use the “if” control block, it does not work.


#5