Add board: Waveshare S3 Touch LCD 1.47 (#328)

Touch isn't working yet.
Fixed a SPI lock issue.
This commit is contained in:
Ken Van Hoeylandt
2025-09-12 23:45:37 +02:00
committed by GitHub
parent 84049658db
commit 980b115f1d
29 changed files with 1600 additions and 6 deletions
@@ -0,0 +1,26 @@
#include "Sdcard.h"
#include <Tactility/lvgl/LvglSync.h>
#include <Tactility/hal/sdcard/SpiSdCardDevice.h>
using tt::hal::sdcard::SpiSdCardDevice;
constexpr auto SDCARD_PIN_CS = GPIO_NUM_14;
constexpr auto LCD_PIN_CS = GPIO_NUM_21;
std::shared_ptr<SdCardDevice> createSdCard() {
auto configuration = std::make_unique<SpiSdCardDevice::Config>(
SDCARD_PIN_CS,
GPIO_NUM_NC,
GPIO_NUM_NC,
GPIO_NUM_NC,
SdCardDevice::MountBehaviour::AtBoot,
tt::hal::spi::getLock(SPI3_HOST),
std::vector { LCD_PIN_CS },
SPI3_HOST
);
return std::make_shared<SpiSdCardDevice>(
std::move(configuration)
);
}