Skip to content

Commit 109cd4a

Browse files
committed
pbio/sys/hmi: Implement EV3 user animation.
Also clean up UI drawing.
1 parent fdb7678 commit 109cd4a

5 files changed

Lines changed: 304 additions & 45 deletions

File tree

lib/pbio/platform/virtual_hub/pbioconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define PBIO_CONFIG_DCMOTOR_NUM_DEV (6)
77
#define PBIO_CONFIG_DRIVEBASE_SPIKE (1)
88
#define PBIO_CONFIG_IMAGE (1)
9-
#define PBIO_CONFIG_LIGHT (0)
9+
#define PBIO_CONFIG_LIGHT (1)
1010
#define PBIO_CONFIG_LOGGER (1)
1111
#define PBIO_CONFIG_LIGHT_MATRIX (0)
1212
#define PBIO_CONFIG_MOTOR_PROCESS (1)

lib/pbio/sys/hmi_ev3.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ static pbio_error_t run_ui(pbio_os_state_t *state, pbio_os_timer_t *timer) {
173173
pbio_color_light_start_breathe_animation(pbsys_status_light_main, PBSYS_CONFIG_STATUS_LIGHT_STATE_ANIMATIONS_HUE);
174174
#endif
175175

176+
pbsys_hmi_ev3_ui_run_animation_start();
177+
176178
PBIO_OS_ASYNC_END(PBIO_SUCCESS);
177179
}
178180

0 commit comments

Comments
 (0)