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