@IndianaTux
this works on my CoreS3, directly turns off LDO2
#include <M5CoreS3.h>
#include <Wire.h>
void setup() {
// put your setup code here, to run once:
Wire1.beginTransmission(0x34);
Wire1.write(0x12);
Wire1.write(0b01001011); // LDO2, aka OLED_VDD, off
Wire1.endTransmission();
}