mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 08:16:06 +08:00
set display power + brightness in spinner and text window (#20719)
* set display power + brightness in spinner and text window * update aarch64 * update larch Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
@@ -7,8 +7,10 @@
|
||||
#include <QGridLayout>
|
||||
#include <QApplication>
|
||||
#include <QPainter>
|
||||
|
||||
#include "spinner.hpp"
|
||||
#include "qt_window.hpp"
|
||||
#include "selfdrive/hardware/hw.h"
|
||||
|
||||
TrackWidget::TrackWidget(QWidget *parent) : QOpenGLWidget(parent) {
|
||||
setFixedSize(spinner_size);
|
||||
@@ -121,6 +123,9 @@ int main(int argc, char *argv[]) {
|
||||
#endif
|
||||
QSurfaceFormat::setDefaultFormat(fmt);
|
||||
|
||||
Hardware::set_display_power(true);
|
||||
Hardware::set_brightness(65);
|
||||
|
||||
QApplication a(argc, argv);
|
||||
Spinner spinner;
|
||||
setMainWindow(&spinner);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -14,6 +14,9 @@ int main(int argc, char *argv[]) {
|
||||
QWidget window;
|
||||
setMainWindow(&window);
|
||||
|
||||
Hardware::set_display_power(true);
|
||||
Hardware::set_brightness(65);
|
||||
|
||||
QGridLayout *layout = new QGridLayout;
|
||||
layout->setMargin(50);
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user