mirror of
https://github.com/brmlab/edubrm.git
synced 2025-08-03 07:13:37 +02:00
use old formatting #2
This commit is contained in:
parent
46ce74216c
commit
03006e9d37
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ class ModuleAWidget(QWidget):
|
||||||
|
|
||||||
def read_inputs(self):
|
def read_inputs(self):
|
||||||
r = self.dev.read()
|
r = self.dev.read()
|
||||||
v = r[0]/1023.0 * 3.3
|
v = r[1]/1023.0 * 3.3
|
||||||
self.ui.labelV.setText('{:0.3f} V'.format(v))
|
self.ui.labelV.setText('%0.3f V' % v)
|
||||||
self.ui.progressV.setValue(1000*v)
|
self.ui.progressV.setValue(1000*v)
|
||||||
|
|
||||||
class ModuleA():
|
class ModuleA():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue