The ChuteManager_3
sketch is capable of displaying a status board and a splash image, and it can switch between the two on command. The status board shows current alliance, FMS heartbeat, game stage (autonomous or teleop), enabled/disabled status, data from up to 4 color sensors (pointed at the ball chambers in the 2022 season), and a voltage gauge.
In the ChuteManager_3.ino
file, change the values of these fields:
PIN_STRIP1
- the pin number that the LED panel is connected toMATRIX_WIDTH
- the width of the LED panel, in pixelsMATRIX_HEIGHT
- the height of the LED panel, in pixelsMAX_STRIP_BRIGHTNESS
- the global brightness of the LED panel, from 0-255 (warning: the higher you go, the less noticable difference there is between brightness levels, but power consumption is linear)NUM_REV_LIGHT_SENSORS
- the number of color sensors to display (max of 4)
See the matrix
documentation -- this sketch reads the same splash image data to display the splash image. Note that the image will not display on boot. The display mode must be changed to view the image.
See this Java subsystem for an example. "Boot" refers to the splash image. "Status" displays the status board. "Climb" is unimplemented in ChuteManager and therefore undefined behavior.