This commit is contained in:
2023-05-01 11:28:04 +02:00
parent 3a83f3cf34
commit abe3bcb19c
265 changed files with 28663 additions and 1295 deletions

21
script/test/TestStrip.py Normal file
View File

@@ -0,0 +1,21 @@
import random
####################################################################################################
# Simulated Devices
####################################################################################################
class AnalogInput(ReadonlyRegisterBase):
def doRead(self):
time.sleep(0.001)
self.val = to_array(self.calc(), 'd')
return self.val
class Random(AnalogInput):
def calc(self):
return random.random()
for i in range(20):
r=Random("r"+str(i))
add_device(r, True)
r.polling=5