New board: Waveshare ESP32 S3 Touch LCD 4.3" (#248)

This commit is contained in:
Ken Van Hoeylandt
2025-03-14 23:55:48 +01:00
committed by GitHub
parent f85d0239ff
commit 0ebc022946
14 changed files with 305 additions and 0 deletions
@@ -0,0 +1,21 @@
#include "WaveshareSdCard.h"
#include <Tactility/hal/sdcard/SpiSdCardDevice.h>
using tt::hal::sdcard::SpiSdCardDevice;
std::shared_ptr<SdCardDevice> createSdCard() {
auto* configuration = new SpiSdCardDevice::Config(
GPIO_NUM_10,
GPIO_NUM_NC,
GPIO_NUM_NC,
GPIO_NUM_NC,
SdCardDevice::MountBehaviour::AtBoot
);
auto* sdcard = (SdCardDevice*) new SpiSdCardDevice(
std::unique_ptr<SpiSdCardDevice::Config>(configuration)
);
return std::shared_ptr<SdCardDevice>(sdcard);
}