mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 02:43:15 +00:00
- Add implementation for CYD-E28R28T. This implementation has the SD card working, using the same driver as the CYD-2432S028R.
- Edit .gitignore for some missing things.
- run chmod +x on some build scripts
- Make EspLcdDisplay's reference public for access from drivers (needed for driver St7789i8080)
> ```class EspLcdDisplay : public tt::hal::display::DisplayDevice {```
23 lines
676 B
C++
23 lines
676 B
C++
#include "YellowSdCard.h"
|
|
#include "YellowDisplayConstants.h"
|
|
#include <Tactility/hal/sdcard/SpiSdCardDevice.h>
|
|
|
|
using tt::hal::sdcard::SpiSdCardDevice;
|
|
|
|
std::shared_ptr<SdCardDevice> createYellowSdCard() {
|
|
auto* configuration = new SpiSdCardDevice::Config(
|
|
CYD_SDCARD_PIN_CS,
|
|
GPIO_NUM_NC, // No card detect pin specified
|
|
GPIO_NUM_NC,
|
|
GPIO_NUM_NC,
|
|
SdCardDevice::MountBehaviour::AtBoot,
|
|
std::make_shared<tt::Mutex>(),
|
|
std::vector<gpio_num_t>(),
|
|
CYD_SDCARD_SPI_HOST
|
|
);
|
|
|
|
return std::shared_ptr<SdCardDevice>(
|
|
new SpiSdCardDevice(std::unique_ptr<SpiSdCardDevice::Config>(configuration))
|
|
);
|
|
}
|