Fix boot sequence: initialize SD card before display driver to prevent SD_MMC from overwriting LCD CS pin matrix settings
This commit is contained in:
@@ -100,14 +100,14 @@ void setup() {
|
||||
printf(" Memory Frame v2.0\r\n");
|
||||
printf("============================\r\n");
|
||||
|
||||
// Display on first
|
||||
LCD_Init();
|
||||
Set_Backlight(90);
|
||||
|
||||
// SD card
|
||||
// SD card first (so SD_MMC driver does not overwrite LCD CS pin 21)
|
||||
Flash_test();
|
||||
SD_Init();
|
||||
|
||||
// Display second
|
||||
LCD_Init();
|
||||
Set_Backlight(90);
|
||||
|
||||
// Load memories from config
|
||||
Config_Load();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user