Skip to content

Add support for breakout ADC channel#12

Merged
Gadgetoid merged 4 commits into
masterfrom
patch-adc
Jul 17, 2019
Merged

Add support for breakout ADC channel#12
Gadgetoid merged 4 commits into
masterfrom
patch-adc

Conversation

@Gadgetoid
Copy link
Copy Markdown
Member

Since the gas module is the one that initialises and uses the ADC, I've added the ability to configure the gain for, and optionally enable the spare ADC channel so that it can easily be used to read- for example- an analog CO2 sensor.

The new example adc.py demonstrates how to use it and the gain can be set to 6.144v, 4.096v, 2.094v, 1.024v, 0.512v or 0.256v to suit a range of sensor types with the best available resolution.

@Gadgetoid Gadgetoid merged commit a73ee78 into master Jul 17, 2019
@Gadgetoid Gadgetoid deleted the patch-adc branch November 15, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant