Line 18... |
Line 18... |
18 |
#### Sensor Configuration ########################################### |
18 |
#### Sensor Configuration ########################################### |
19 |
|
19 |
|
20 |
cfg = config.Config( |
20 |
cfg = config.Config( |
21 |
port = port, |
21 |
port = port, |
22 |
bus = [ |
22 |
bus = [ |
- |
|
23 |
{ |
- |
|
24 |
"type": "i2chub", |
- |
|
25 |
"address": 0x71, |
- |
|
26 |
"children": [ |
23 |
{ "name":"counter", "type":"acount02"}, |
27 |
{ "name":"counter", "type":"acount02", "channel": 2, }, |
24 |
{ "name":"clkgen", "type":"clkgen01"}, |
28 |
{ "name":"clkgen", "type":"clkgen01", "channel": 5, }, |
- |
|
29 |
], |
- |
|
30 |
}, |
25 |
], |
31 |
], |
26 |
) |
32 |
) |
27 |
cfg.initialize() |
33 |
cfg.initialize() |
28 |
|
34 |
|
29 |
print "Frequency counter readout example \r\n" |
35 |
print "Frequency counter readout example \r\n" |