Skip to content

machine.ADC(4) - initialization becoming corrupted  #13

@arajnak

Description

@arajnak

sensor_temp = machine.ADC(4) - initialization becoming corrupted by subsequent port allocations e.g.
Vsys = machine.ADC(0)

Will result in temp reading of 84 C instead of 24 C from ADC(4)
When done in the reversed order placing ADC(4) last, it works fine.

Vsys = machine.ADC(0)
Vbus = machine.ADC(1)
Vout = machine.ADC(2)
sensor_temp = machine.ADC(4) # works

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions