Skip to content

adafruit_mcp3xxx.Analogin - correct ADC scaling to 16-bit range to match analogio.AnalogIn #43

@kevinjwalters

Description

@kevinjwalters

The change in adafruit/circuitpython#4794 (raised by @PaintYourDragon) which appeared in CircuitPython 8 scales values to the full 16 bit range for analogio.AnalogIn.

The current implementation of adafruit_mcp3xxx.AnalogIn has the old behaviour of zero padding to unsigned 16bit for the 10bit values. This is well documented as ranging from 0 to 65472 and has been previously discussed in #12

This is part of the same ecosystem, should this be brought into line with the aforementioned full-scaling change?

Same issue raised in adafruit/Adafruit_CircuitPython_ADS1x15#92

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions