2020-01-26 09:28:37 +00:00
|
|
|
#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
|
2020-01-27 18:34:08 +00:00
|
|
|
#define DISPLAY_PORT_BL 7
|
2020-01-26 09:28:37 +00:00
|
|
|
|
|
|
|
#endif
|