t-hmi: SD_FREQENCY for everyone
This commit is contained in:
parent
e089634eff
commit
c77aea65b0
@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
#define TOUCH_ENABLE (1)
|
#define TOUCH_ENABLE (1)
|
||||||
#define SDMMC_1BIT_FIX (1)
|
#define SDMMC_1BIT_FIX (1)
|
||||||
|
#define SD_FREQUENCY (20000)
|
||||||
#ifndef TFT_BL
|
#ifndef TFT_BL
|
||||||
// XXX - defined in User_Setups/Setup207_LilyGo_T_HMI.h:37
|
// XXX - defined in User_Setups/Setup207_LilyGo_T_HMI.h:37
|
||||||
#define TFT_BL (38) // LED back-light
|
#define TFT_BL (38) // LED back-light
|
||||||
|
@ -169,9 +169,9 @@ bool SDCard::initSDcard()
|
|||||||
#elif defined (BUILD_SDMMC_1)
|
#elif defined (BUILD_SDMMC_1)
|
||||||
#warning SDMMC : 1 - bit mode is not always working. If you experience issues, try other modes.
|
#warning SDMMC : 1 - bit mode is not always working. If you experience issues, try other modes.
|
||||||
iSD_->setPins(SDMMC_CLK, SDMMC_CMD, SDMMC_D0);
|
iSD_->setPins(SDMMC_CLK, SDMMC_CMD, SDMMC_D0);
|
||||||
#ifdef NERDMINER_T_HMI
|
#ifdef SD_FREQUENCY
|
||||||
// Need to lower frequency to 20000 for proper detection
|
// Need to lower frequency to 20000 for proper detection
|
||||||
cardInitialized_ = iSD_->begin("/sd", true, false, 20000);
|
cardInitialized_ = iSD_->begin("/sd", true, false, SD_FREQUENCY);
|
||||||
#else
|
#else
|
||||||
cardInitialized_ = iSD_->begin("/sd", true);
|
cardInitialized_ = iSD_->begin("/sd", true);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user