☰
Debian Codegraph
@
5.3.5+repack-1
/
/
eyes17
/
examples
/
setVoltages.py
☽
☼
eyes17/examples/setVoltages.py
code
plain
raw
GPL-3
2010-2018 Ajith Kumar B.P <
[email protected]
>
debian/copyright
1
import eyes17.eyes
2
p = eyes17.eyes.open()
3
4
# Connect PV1 to A1 and PV2 to A2, using two wires
5
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