A USB ambient light sensor board with a user-space driver to adaptively control monitor brightness with the MCSS (Monitor Control Command Set).
Go to file
2020-06-21 20:03:08 +02:00
AdaptiveBrightness Fix compiler flags for windows 2020-06-21 20:02:48 +02:00
.clang-format Add qt example 2020-06-21 17:52:18 +02:00
.editorconfig Add qt example 2020-06-21 17:52:18 +02:00
.gitattributes Add qt example 2020-06-21 17:52:18 +02:00
.gitignore Add qt pro file 2020-06-21 17:52:29 +02:00
AdaptiveBrightness.sln Add qt example 2020-06-21 17:52:18 +02:00
LICENSE Initial commit 2020-06-21 17:49:48 +02:00
README.md Add deployment documentation 2020-06-21 20:03:08 +02:00

AdaptiveBrightness

Build and deployment instructions

Windows

Prerequisites

  • Visual Studio 2019
  • Qt Visual Studio Tools
  • Qt Library

Build steps

Open the sln and build.

Deployment steps

The example here is for deploying an x64 Release build, but other build work analogously.

Start a x64 Native Tools Command Prompt for VS 2019:

> cd %QTDIR%\msvc2019_64\bin
> set PATH=%PATH%;%CD%
> cd %DEV%\AdaptiveBrightness\AdaptiveBrightness
> windeployqt --no-system-d3d-compiler ..\x64\Release\AdaptiveBrightness.exe

Linux

Prerequisites

Assumes Debian Buster: sudo apt install qt5-default libqt5serialport5-dev

Build steps

$ qmake CONFIG+=release # or CONFIG+=debug
$ make

Deployment

Executable will run on any environment with the same architecture and installed libraries.