devboard is now a module, act accordingly
authorDan White <dan@whiteaudio.com>
Wed, 17 Oct 2012 21:03:53 +0000 (16:03 -0500)
committerDan White <dan@whiteaudio.com>
Wed, 17 Oct 2012 21:03:53 +0000 (16:03 -0500)
python-lib/calibrate.py

index 4bf8ab34f5149e5e7063b5602ec7174b2146734d..8ea42f33d421309e6710d5e4c7d35df747102511 100644 (file)
@@ -1,5 +1,5 @@
 
-from pprint import pprint
+from time import sleep
 
 from termplotter import TermPlotter
 
@@ -7,6 +7,23 @@ tplot = TermPlotter([-2**11, 2**11], width=80)
 tpx = TermPlotter([-128, 127], width=80)
 
 
+
+# devboard is assumed to be imported as:
+#
+# import devboard as dev
+#
+# and already initialized/setup to the desired state
+#
+
+#helpers
+chain = dev.chain
+mux = dev.mux
+arb = dev.arb
+amux = dev.amux
+adc = dev.adc
+dac = dev.dac
+
+
 def bisect(fset, limits=[0.0, 1.0], dgmin=None, up='uk', down='dj'):
     """Given a one-input function fset and list of limits, interactively bisect
     the range by sending fset(guess) and asking to go (u)p or (d)own for the