Enhance DaliBase and DaliBridge: add support for logarithmic brightness control in setBright and setBrightPercentage methods

Signed-off-by: Tony <tonylu@tony-cloud.com>
This commit is contained in:
Tony
2026-06-15 01:55:29 +08:00
parent 211a9a9c41
commit 2f018c8cc5
4 changed files with 20 additions and 8 deletions
+2 -2
View File
@@ -50,8 +50,8 @@ class DaliBase {
// Brightness helpers
int brightnessToLog(int brightness) const;
int logToBrightness(int logValue) const;
bool setBright(int a, int b);
bool setBrightPercentage(int a, double b);
bool setBright(int a, int b, bool logarithmicCurve = false);
bool setBrightPercentage(int a, double b, bool logarithmicCurve = false);
bool stopFade(int a);
bool off(int a);
bool on(int a);