Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tanakamasayuki opened this issue Aug 8, 2024 · 1 comment
Open

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

tanakamasayuki opened this issue Aug 8, 2024 · 1 comment

Comments

@tanakamasayuki
Copy link
Contributor

#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.

@lovyan03
Copy link
Collaborator

lovyan03 commented Aug 8, 2024

@tanakamasayuki
Thank you for reporting this.
We will be fixing the code that relies on legacy drivers such as ADC and I2S.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants