mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-21 22:12:05 +08:00
100f89a161
* openpilot v0.9.9 release date: 2025-06-05T19:54:08 master commit: 8aadf02b2fd91f4e1285e18c2c7feb32d93b66f5 * AGNOS 12.4 (#35558) agnos12.4 --------- Co-authored-by: Vehicle Researcher <user@comma.ai> Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
21 lines
495 B
Python
Executable File
21 lines
495 B
Python
Executable File
#!/usr/bin/env python3
|
|
import pyray as rl
|
|
from openpilot.system.ui.lib.application import gui_app
|
|
from openpilot.selfdrive.ui.layouts.main import MainLayout
|
|
from openpilot.selfdrive.ui.ui_state import ui_state
|
|
|
|
|
|
def main():
|
|
gui_app.init_window("UI")
|
|
main_layout = MainLayout()
|
|
for _ in gui_app.render():
|
|
ui_state.update()
|
|
|
|
#TODO handle brigntness and awake state here
|
|
|
|
main_layout.render(rl.Rectangle(0, 0, gui_app.width, gui_app.height))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|