mirror of
https://github.com/brmlab/edubrm.git
synced 2025-08-02 14:53:35 +02:00
piny
This commit is contained in:
parent
e38d475d40
commit
af36fa43f0
8 changed files with 57 additions and 36 deletions
|
@ -79,7 +79,7 @@ class Device:
|
|||
if self.fake:
|
||||
print 'setout', which, state
|
||||
else:
|
||||
self.epo.write('o' + chr(which<<1 + state))
|
||||
self.epo.write('o' + chr((which<<1) + state))
|
||||
|
||||
# 7x AD (16 bits) + 3 x I
|
||||
def read(self):
|
||||
|
|
|
@ -29,7 +29,7 @@ class ModuleDebugWidget(QWidget):
|
|||
# real device:
|
||||
self.dev = Device()
|
||||
# fake device:
|
||||
# self.dev = Device(True)
|
||||
# self.dev = Device(True)
|
||||
|
||||
self.timer = QTimer()
|
||||
QObject.connect(self.timer, SIGNAL("timeout()"), self.read_inputs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue