mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-09 05:14:01 +02:00
use env variable to create fake device
we have 10bits ADCs
This commit is contained in:
parent
985b3d8dd7
commit
21ecdcdca4
2 changed files with 9 additions and 11 deletions
|
@ -26,11 +26,6 @@ class ModuleDebugWidget(QWidget):
|
|||
QObject.connect(self.ui.pushPin2, SIGNAL("clicked(bool)"), self.on_pins_changed)
|
||||
QObject.connect(self.ui.pushPin3, SIGNAL("clicked(bool)"), self.on_pins_changed)
|
||||
|
||||
# real device:
|
||||
self.dev = Device()
|
||||
# fake device:
|
||||
# self.dev = Device(True)
|
||||
|
||||
self.timer = QTimer()
|
||||
QObject.connect(self.timer, SIGNAL("timeout()"), self.read_inputs)
|
||||
|
||||
|
@ -153,6 +148,7 @@ class ModuleDebug():
|
|||
|
||||
def start(self):
|
||||
print 'start Debug'
|
||||
self.widget.dev = Device()
|
||||
|
||||
def stop(self):
|
||||
print 'stop Debug'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue