O'Reilly logo

The LEGO MINDSTORMS EV3 Discovery Book (Full Color) by Laurens Valk

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

Chapter 16. using constants and variables

If you’ve made it this far, you’re just a few steps away from mastering all of the programming skills in this book. You’ve learned how to use many different programming blocks as well as how to work with essential tools, such as data wires. This chapter completes the programming section of this book by teaching you how to use constants as well as how to use the EV3’s memory with variables.

using constants

The Constant block provides a starting point for a data wire whose value you can choose manually. You choose the data wire type by selecting a mode (Text, Numeric, or Logic), and you enter its value in the Value field, as shown in Figure 16-1.

The Constant block is useful if you want to configure the settings ...

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