eyes17/code/setVoltages.py
raw| 1 | #import eyes17.eyes # uncomment these two lines while running stand-alone |
| 2 | #p = eyes17.eyes.open() |
| 3 | |
| 4 | # Connect PV1 to A1 and PV2 to A2, using two wires |
| 5 | from __future__ import print_function |
| 6 | |
| 7 | print (p.set_pv1(2.5)) |
| 8 | print (p.set_pv2(1)) |
| 9 | |
| 10 | print (p.get_voltage('A1')) |
| 11 | print (p.get_voltage('A2')) |
| 12 |