How to switch the register of analog-to-digital converter in the module AdсExp for Python 3?
-
Omega-2 can be connected to 2 ADC Expansion. But how to change the register for ADC Expansion in the module AdcExp for Python 3?
-
@CAP-33 There's a Python3 module for the ADC Expansion called
python3-adc-exp
See this blog post for more details.
-
@Lazar-Demin
Sorry, maybe I incorrectly formulated the question and misled you. My question is: how to switch the ADC Expansion register from 0x48 to 0x49 in the python3-adc-exp module?
-
@CAP-33 Official Onion Omega2 Documentation ADC Expansion:
-
@György-Farkas
I know that i can switch the device's register using the switch. But my question is how to specify the address of the ADC Expansion in the Python program?
-
@CAP-33 So I completely misunderstood your post. Sorry.
-
@CAP-33 when creating an
adcExp
object, you can specify the address. See this example: https://github.com/OnionIoT/adc-exp/blob/master/examples/readAll.py#L8Then you just supply the device address that corresponds to your switch setting.