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 ...

Get The LEGO MINDSTORMS EV3 Discovery Book (Full Color) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.