Update py modules
authorDan White <dan@whiteaudio.com>
Fri, 2 Nov 2012 22:19:54 +0000 (17:19 -0500)
committerDan White <dan@whiteaudio.com>
Fri, 2 Nov 2012 22:35:21 +0000 (17:35 -0500)
python-lib/calibrate.py
python-lib/devboard.py

index c10f9559f2291d8fce16a4ba66a56ccd817de6a4..afda007e7c0f886f52ee0a3826bd0a7b89eb68cf 100644 (file)
@@ -1,5 +1,8 @@
 
+#bad practice, but...
+from pylab import *
 from time import sleep
+
 from termplotter import TermPlotter
 
 tplot = TermPlotter([-2**11, 2**11], width=80)
index 356aa1165f70ce1dd1a3b87a6155de1af01cf9bf..319259435981fabed942729ee07706ce3126cd30 100644 (file)
@@ -127,6 +127,11 @@ def meas_isupply():
     return result
 
 
+def print_isupply():
+    for name, i in meas_isupply().iteritems():
+        print '%-10s %8.2f uA' % (name, 1e6*i)
+
+
 def dump_config():
     """Return a hierarchical dict of settings appropriate for passing to the
     individual constructors.