O'Reilly logo

Building Smart LEGO MINDSTORMS EV3 Robots by Kyle Markland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Programming the GUI

We will start the program the same way we have started every program so far: with an infinite loop that encloses the rest of the program. 

Then, add in some code to start making the GUI. These first few blocks are for initialization. The blocks, in order, do the following—clear the EV3 display, print the custom menu to the display, stop all of the motors, then set the brick LED to blink green. The Timmyton makes extensive use of the brick LED to add an extra dimension to the user-robot interaction:

After the initialization code, insert a switch block. Change its mode to Brick Buttons | Measure | Brick Buttons. Make sure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required