Team 3673 Cyborg Seagulls found a way to display on shuffleboard a color block, if the color sensor detects a color.
We have seen a couple questions about how to do this, and we wanted to show you guys how we have done it. To start off, we used basic Rev Robotics example color sensor code. https://github.com/REVrobotics/Color-Sensor-v3-Examples
We added four booleans for each of the colors and set them to false. We’ve set false as the default, until the color sensor detected the color. Which then set it to true in the if-else statements when the color was detected.
After that we added the last four lines of code to show the booleans on shuffleboard.
After uploading your code, open shuffleboard and change the properties of the booleans to the preferred color.