Hello @oetzevandenbroek
I think you are close. Try M5.Power.setExtPwr(false). Below is how it is defined:
/// Set power supply to external ports. /// @param enable true=output / false=input /// @param port_mask for M5Station. ext_port (bitmask). void setExtPower(bool enable, ext_port_mask_t port_mask = (ext_port_mask_t)0xFF);In your case you want to set it as input to the M5Core2.
Thanks
Felix