CYD-E28R32T Implementation (#317)
- 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 {```
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#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))
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user