Skip to content

ADC cannot be used with M5Unified and Arduino3.0.4 #121

@tanakamasayuki

Description

@tanakamasayuki
#include <M5Unified.h>

void setup() {
  auto cfg = M5.config();
  M5.begin(cfg);
  analogReadResolution(12);
}

void loop() {
  M5.delay(1000);
  M5.Log.println("loop");
}

Hang up at analogReadResolution().

E (119) ADC: CONFLICT! driver_ng is not allowed to be used with the legacy driver

This error occurred.
Therefore, I will use Arduino2.x.

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