Pārlūkot izejas kodu

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

Thomas B 2 mēnešus atpakaļ
vecāks
revīzija
45a764fc8f
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4
    1
      client/brightness.py

+ 4
- 1
client/brightness.py Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt