From c03b6c36a0f90fdddda292c2113acf51cfd5cdf0 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 18 Oct 2020 16:32:22 +0200 Subject: [PATCH] change brightness range --- LedDisplayController/ressources/qml/ConnectedPage.qml | 2 +- vscode/OmobiLEDdisplayBluetooth/src/LedDisplayController.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LedDisplayController/ressources/qml/ConnectedPage.qml b/LedDisplayController/ressources/qml/ConnectedPage.qml index 34fff2a..c9b7996 100644 --- a/LedDisplayController/ressources/qml/ConnectedPage.qml +++ b/LedDisplayController/ressources/qml/ConnectedPage.qml @@ -62,7 +62,7 @@ Page { Layout.fillHeight: true from: 0 - to: 255 + to: 50 stepSize: 1 value: backend.displayBrightness.displayBrightness diff --git a/vscode/OmobiLEDdisplayBluetooth/src/LedDisplayController.cpp b/vscode/OmobiLEDdisplayBluetooth/src/LedDisplayController.cpp index 1dad8a2..21bedb5 100644 --- a/vscode/OmobiLEDdisplayBluetooth/src/LedDisplayController.cpp +++ b/vscode/OmobiLEDdisplayBluetooth/src/LedDisplayController.cpp @@ -2,7 +2,7 @@ LedDisplayController *ledDisplayControllerGlobal = nullptr; -static const uint8_t StepsFade = 255; +static const uint8_t StepsFade = 50; static const float RFade = (StepsFade*log10(2))/log10(255); // --------------------