Skip to content

Commit 19d921b

Browse files
committed
pbio/sys/light_matrix: Disable animation for EV3.
Having the light matrix for the UI is useful for now, but we don't need the animation, which gets in the way of other developments. The hub light serves as an indicator that the program is running.
1 parent c11c419 commit 19d921b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/pbio/sys/light_matrix.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ static uint32_t pbsys_hub_light_matrix_user_program_animation_next(pbio_light_an
158158
* @param start @c true for start or @c false for stop.
159159
*/
160160
void pbsys_hub_light_matrix_handle_user_program_start(bool start) {
161+
162+
#if PBSYS_CONFIG_HUB_LIGHT_MATRIX_DISPLAY
163+
pbio_image_fill(pbdrv_display_get_image(), 0);
164+
pbdrv_display_update();
165+
return;
166+
#endif
167+
161168
if (start) {
162169
// The user animation updates only a subset of pixels to save time,
163170
// so the rest must be cleared before it starts.

0 commit comments

Comments
 (0)