Skip to content

Looking for API to read ADC value on Pico #42

@abcd-ca

Description

@abcd-ca

I have a 0-3.25V input wired to GPIO26 (ADC0). Where is the API to read an analog value (0-4095)? I think I'm looking for something like,

let adc_pin_0 = pins.gpio26.into_analog_input();

Update: is it into_floating_input()?

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