LEGO Engineering

| | | | | | | |
What is a container?


19th of April, 2010

(2 )
100% thumbs up 0% thumbs down

Containers are like variables, and are used to store values. They can keep count of how many times something has occurred and be referenced as a value. For instance, if you want to change the motor speed as a function of the amount of light in the room, you can use a container to convert the light sensor value to a motor speed. Usually, you will want to reset or "zero" the container before you use it in the program. The reset container command is found in the reset commands.






ses

   :
   :
* :
* :
 


Home | About Us | Contact Us

© 2013 Center for Engineering Educational Outreach, Tufts University
© 2013 The LEGO Group. All rights reserved.