This program is for the target part of Pallo. It uses a piston with differently colored sections, which are detected by a color sensor.
The piston starts with a green section, so the program waits for that color to change—indicating that the target has been hit. Then, it celebrates!
The celebration is simple: the program reads the color of the new section to determine how accurately the target was hit, and it lights up the center button with that color. It also displays "YAY" on the hub's screen.
Feel free to improve the program however you like!
How to open?
Download- #40fher
- 07 Aug 2020
- LEGO Education SPIKE Prime
- LEGO Education SPIKE App Word Blocks 3, Fun, Light and Color Sensor, Sensors