NerdNos-Firmware/lib/rm67162/pins_config.h

41 lines
873 B
C
Raw Permalink Normal View History

2023-08-28 22:54:13 +02:00
#pragma once
/***********************config*************************/
2023-09-02 01:01:42 +02:00
#define LCD_USB_QSPI_DREVER 1
2023-08-28 22:54:13 +02:00
2023-09-02 01:01:42 +02:00
#define SPI_FREQUENCY 75000000
#define TFT_SPI_MODE SPI_MODE0
#define TFT_SPI_HOST SPI2_HOST
2023-08-28 22:54:13 +02:00
2023-09-02 01:01:42 +02:00
#define EXAMPLE_LCD_H_RES 536
#define EXAMPLE_LCD_V_RES 240
#define LVGL_LCD_BUF_SIZE (EXAMPLE_LCD_H_RES * EXAMPLE_LCD_V_RES)
2023-08-28 22:54:13 +02:00
/***********************config*************************/
2023-09-02 01:01:42 +02:00
#define TFT_WIDTH 240
#define TFT_HEIGHT 536
#define SEND_BUF_SIZE (0x4000) //(LCD_WIDTH * LCD_HEIGHT + 8) / 10
2023-08-28 22:54:13 +02:00
2023-09-02 01:01:42 +02:00
#define TFT_TE 9
#define TFT_SDO 8
2023-08-28 22:54:13 +02:00
2023-09-02 01:01:42 +02:00
#define TFT_DC 7
#define TFT_RES 17
#define TFT_CS 6
#define TFT_MOSI 18
#define TFT_SCK 47
2023-08-28 22:54:13 +02:00
2023-09-02 01:01:42 +02:00
#define TFT_QSPI_CS 6
#define TFT_QSPI_SCK 47
#define TFT_QSPI_D0 18
#define TFT_QSPI_D1 7
#define TFT_QSPI_D2 48
#define TFT_QSPI_D3 5
#define TFT_QSPI_RST 17
2023-08-28 22:54:13 +02:00
2023-09-02 01:01:42 +02:00
#define PIN_LED 38
#define PIN_BAT_VOLT 4
2023-08-28 22:54:13 +02:00
2023-09-02 01:01:42 +02:00
#define PIN_BUTTON_1 0
#define PIN_BUTTON_2 21