[Solved] Left over results from previous programs
Hellow again. I just found out that after downloading a program there is not an automatic erase of previous program's results. For example if i download a program that turns of the LED lights of the ring and then download a new one that plays a song, the lights are staying on. Why is that happening and how to avoid that;
i meant turns ON the LED lights
Hi, it actually erase the previous program you downloaded, but it is not change the state of certain components. In the case of lights such as the top ring lights or ultrasonic lights, these components keep their state while they are powered on. So, if in your new program you don't explicit tell the robot to turn off the lights, it will not happen. The best way to "avoid" that is always starting a program turning off lights if you are using them during the execution of your code.Â
In the Events section of webcode you can see a block that is actually three blocks joined to stop motors and turn off lights... these blocks are useful in the start of any program exactly to avoid that the new program start with a previous state.Â
Thanks a lot.
- 16 Forums
- 60 Topics
- 295 Posts
- 1 Online
- 3,234 Members
