Hello @TheAlphaGhost
I think the code you uploaded is for M5Stack and not M5Core2.
Please use #include <M5Core2.h> at the top and remove M5.Power.begin() which is required for M5Stack only.
#include <M5Core2.h>
void setup() {
M5.begin();
M5.Lcd.print("Hello World");
}
void loop() {
}
You probably will need to download and install the proper library for M5Core2 as well.
Thanks
Felix