28 lines
701 B
C
28 lines
701 B
C
#pragma once
|
|
|
|
#include "stdbool.h"
|
|
|
|
#include "esp_lcd_panel_io.h"
|
|
|
|
#define LCD_SPI_HOST SPI2_HOST
|
|
|
|
#define GPIO_TFT_MISO CONFIG_TFT_MISO_PIN
|
|
#define GPIO_TFT_MOSI CONFIG_TFT_MOSI_PIN
|
|
#define GPIO_TFT_SCKL CONFIG_TFT_SCKL_PIN
|
|
#define GPIO_TFT_CS CONFIG_TFT_CS_PIN
|
|
#define GPIO_TFT_DC CONFIG_TFT_DC_PIN
|
|
#define GPIO_TFT_BL CONFIG_TFT_BL_PIN // Backlight
|
|
#define TFT_HRES CONFIG_TFT_HRES
|
|
#define TFT_VRES CONFIG_TFT_VRES
|
|
#define TFT_BPP CONFIG_TFT_BPP
|
|
|
|
/**
|
|
* Draws a test bitmap of stripes of colors to the LCD.
|
|
*/
|
|
void test_draw_bitmap(esp_lcd_panel_handle_t panel_handle);
|
|
|
|
/**
|
|
* Initializes the SPI LCD in preparation for writing graphics to it.
|
|
*/
|
|
void init_spi_lcd(void);
|