Waveshare GEEK (#413)

This commit is contained in:
Shadowtrance
2025-11-14 07:32:02 +10:00
committed by GitHub
parent 0df6b78bd6
commit c7c9618f48
9 changed files with 219 additions and 8 deletions
@@ -0,0 +1,22 @@
#include "SdCard.h"
#include <Tactility/lvgl/LvglSync.h>
#include <Tactility/hal/sdcard/SdmmcDevice.h>
using tt::hal::sdcard::SdmmcDevice;
std::shared_ptr<SdCardDevice> createSdCard() {
auto configuration = std::make_unique<SdmmcDevice::Config>(
GPIO_NUM_36, //CLK
GPIO_NUM_35, //CMD
GPIO_NUM_37, //D0
GPIO_NUM_33, //D1
GPIO_NUM_38, //D2
GPIO_NUM_34, //D3
SdCardDevice::MountBehaviour::AtBoot
);
return std::make_shared<SdmmcDevice>(
std::move(configuration)
);
}