From 85d103922feb796c3cbad3b22bb1f4e184e1ebd5 Mon Sep 17 00:00:00 2001 From: Tinyu Date: Thu, 27 Aug 2026 14:09:30 +0800 Subject: [PATCH] Enable ToughC5 SD card power. --- src/utility/Power_Class.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utility/Power_Class.cpp b/src/utility/Power_Class.cpp index 27b38a4..c063f83 100644 --- a/src/utility/Power_Class.cpp +++ b/src/utility/Power_Class.cpp @@ -364,6 +364,11 @@ namespace m5 M5_LOGE("M5IOE1 CHG_PROG pull state could not be released."); } ioe1.setDirection(M5IOE1_Class::gpio3, false); + + // Turn on SD card power + ioe1.setHighImpedance(M5IOE1_Class::gpio6, false); + ioe1.setDirection(M5IOE1_Class::gpio6, true); + ioe1.digitalWrite(M5IOE1_Class::gpio6, true); } M5pm1.setBatteryCharge(true); M5pm1.setDCDCOutput(true);