Skip to content

E (1277) adc_oneshot: adc_oneshot_new_unit(91): adc unit not supported #32

@jellewie

Description

@jellewie

We use const uint8_t PAI_IDBits5to8 = 5;

Espressif states:

ADC1:
5 channels: GPIO0 - GPIO4
ADC2:
1 channels: GPIO5

And ADC2 is not allowed/possible with WiFi. We should change our Id pinout

Image
  • Move PAI_IDBits5to8 to one of pins 0-4
  • Also I believe this is ignored in analog reads, so we can remove this line pinMode(PAI_IDBits5to8, INPUT_PULLUP);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions