mirror of
https://github.com/brmlab/edubrm.git
synced 2025-08-03 15:23:36 +02:00
read inputs in separate thread
This commit is contained in:
parent
d4c3b1d9bf
commit
37a48eb7e6
3 changed files with 52 additions and 18 deletions
|
@ -83,7 +83,7 @@ class Device:
|
|||
return (randint(0,65535), # AD0
|
||||
randint(0,65535), randint(0,65535), randint(0,65535), # AD1 .. AD3
|
||||
randint(0,65535), randint(0,65535), randint(0,65535), # AD4 .. AD6
|
||||
randint(0,7)) # IO1 .. IO3
|
||||
randint(0,1), randint(0,1), randint(0,1)) # IO1 .. IO3
|
||||
else:
|
||||
i = self.epi.read(self.INSIZE)
|
||||
return (i[0] + i[1]<<8, # AD0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue