summaryrefslogtreecommitdiff
path: root/liboctopus/python/demos/adc.py
blob: 5e55ab7a593bce5e6c7ceb590fee1e51cc2240af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from  octopus import *
import time


op=octopus_context()
octopus_init(op)
octopus_open(op)
octopus_adc_init(op, 33)
octopus_adc_ref(op, 2)

while 1:
    value = octopus_adc_get(op, 33)
    callin = "Value %i" % value
    print callin
    time.sleep(1)