15 lines
336 B
C
15 lines
336 B
C
#ifndef __ports
|
|
#define __ports
|
|
|
|
// Settings for an ST7789 based 240x240 pixel LCD.
|
|
#define DISPLAY_WIDTH 240
|
|
#define DISPLAY_HEIGHT 240
|
|
#define DISPLAY_ROTATION 2
|
|
|
|
// Control pins. Data is sent over the hardware SPI pins.
|
|
#define DISPLAY_PORT_CS 10
|
|
#define DISPLAY_PORT_RST 9
|
|
#define DISPLAY_PORT_DC 8
|
|
#define DISPLAY_PORT_BL 7
|
|
|
|
#endif |