浏览代码

influx displays to zero when turned off. filter slightly faster again.

Thomas B 2 个月前
父节点
当前提交
45a764fc8f
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      client/brightness.py

+ 4
- 1
client/brightness.py 查看文件

@@ -5,7 +5,7 @@ import ddc
5 5
 import time
6 6
 import influx
7 7
 
8
-filter_fact = 0.99
8
+filter_fact = 0.90
9 9
 
10 10
 c_in = 0.6, -30.0, # in_a, in_b
11 11
 calibration = {
@@ -98,3 +98,6 @@ if __name__ == "__main__":
98 98
                         d["prev"] = val
99 99
                     except Exception as e:
100 100
                         print(e)
101
+
102
+                        # set to zero to show display is disconnected
103
+                        d["prev"] = 0

正在加载...
取消
保存