mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
To avoid keeping track of a list that maps board project names to board ids. Because of this change, we don't have to manually edit `boards.cmake` anymore when adding a new board.
14 lines
479 B
C++
14 lines
479 B
C++
#pragma once
|
|
|
|
#include <Tactility/hal/display/DisplayDevice.h>
|
|
|
|
#define CROWPANEL_LCD_SPI_HOST SPI2_HOST
|
|
#define CROWPANEL_LCD_PIN_CS GPIO_NUM_15
|
|
#define CROWPANEL_TOUCH_PIN_CS GPIO_NUM_12
|
|
#define CROWPANEL_LCD_PIN_DC GPIO_NUM_2 // RS
|
|
#define CROWPANEL_LCD_HORIZONTAL_RESOLUTION 320
|
|
#define CROWPANEL_LCD_VERTICAL_RESOLUTION 240
|
|
#define CROWPANEL_LCD_SPI_TRANSFER_HEIGHT (CROWPANEL_LCD_VERTICAL_RESOLUTION / 10)
|
|
|
|
std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay();
|