top of page

Tryout - Key Press

 

First let us demonstrate a little bit about logic operations via mBot lightings. As shown below, our program simply writes that if the key "a" or "s" on our computers' keyboard is pressed, the LED on board the mBot will turn red. Or else it stays green by default.

Programme Code
Default (Green Light)
Key Pressed (Red Light)
bottom of page