adding a sequence beam to a loop block
Adding a Sequence Beam to a Loop or Switch block requires some additional steps because you’ll need to make room for the new blocks. In this section, you’ll modify the DoorChime program from Chapter 13 (shown in Figure 17-3) to flash the light on the Color Sensor or Light Sensor while playing the chime.
Figure 17-3. The DoorChime program
Figure 17-4. Flashing the light while playing the chime
Figure 17-4 shows how the program will look when the changes are completed. The blocks on the second Sequence Beam flash ...
Get The Art of LEGO MINDSTORMS NXT-G Programming 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.