LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
ui_config.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "liblvgl/lvgl.h"
4
25#define COL_BG lv_color_hex(0x68468F)
26#define COL_PANEL lv_color_hex(0x503570)
27#define COL_ACCENT lv_color_hex(0xFFDF61)
28#define COL_ACCENT2 lv_color_hex(0xCCAA30)
29#define COL_BTN_IDLE lv_color_hex(0x553878)
30#define COL_BORDER lv_color_hex(0xFFDF61)
31#define COL_TEXT lv_color_hex(0xFFDF61)
32#define COL_TEXT_DIM lv_color_hex(0xCCAA30)
33#define COL_TEXT_SEL lv_color_hex(0x3A2055)
34#define COL_YELLOW lv_color_hex(0xFFDF61)
35#define COL_RED lv_color_hex(0xFF4444)
43#define COL_THEME_PRIMARY lv_color_hex(0x0D0D10)
44#define COL_THEME_SECONDARY lv_color_hex(0x0D0D10)
45#define UI_THEME_DARK true
46
51#define UI_DEFAULT_FONT (&lv_font_montserrat_20)
60constexpr int UI_ANIM_RUN_ZOOM_IN_MS = 550;
61constexpr int UI_ANIM_RUN_ZOOM_OUT_MS = 450;
62constexpr int UI_ANIM_BANNER_PX_MS = 7;
63constexpr int UI_ANIM_BANNER_STAGGER_MS = 400;
64constexpr int UI_ANIM_BANNER_REPEAT_DELAY_MS = 800;
65constexpr int UI_ODOM_REFRESH_MS = 100;
75enum class CtrlSlot {
76 None,
80 OdomX,
81 OdomY,
82 OdomTheta,
83};
84
85#define UI_CTRL_LINE 1
86#define UI_CTRL_REFRESH_MS 500
87#define UI_CTRL_SLOT_LEFT CtrlSlot::MaxMotorTempC
88#define UI_CTRL_SLOT_MID CtrlSlot::AutonTimer
89#define UI_CTRL_SLOT_RIGHT CtrlSlot::None
constexpr int UI_ANIM_BANNER_STAGGER_MS
Delay between buttons.
Definition ui_config.hpp:63
constexpr int UI_ANIM_BANNER_PX_MS
Per-pixel scroll duration.
Definition ui_config.hpp:62
constexpr int UI_ANIM_BANNER_REPEAT_DELAY_MS
Delay before banner repeats.
Definition ui_config.hpp:64
constexpr int UI_ANIM_RUN_ZOOM_IN_MS
Zoom when opening run screen.
Definition ui_config.hpp:60
constexpr int UI_ODOM_REFRESH_MS
Odom X/Y/Angle label refresh period.
Definition ui_config.hpp:65
constexpr int UI_ANIM_RUN_ZOOM_OUT_MS
Zoom when pressing BACK.
Definition ui_config.hpp:61
CtrlSlot
Per-slot content options for the controller status line.
Definition ui_config.hpp:75
@ MaxMotorTempC
"55C" — hottest drive/score motor.
@ OdomTheta
"T90" — current odom heading (degrees).
@ OdomY
"Y12.0" — current odom Y (inches).
@ None
Empty slot.
@ AutonTimer
"15.2s" — last auton elapsed time (set by autonomous()).
@ BatteryPct
"87%" — main battery capacity.
@ OdomX
"X24.5" — current odom X (inches).