-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10aa06a
commit cf44ad4
Showing
4 changed files
with
139 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,9 @@ | ||
/** | ||
* The WaveShare S3 Touch uses a panel with the ST7262 display driver. | ||
*/ | ||
#pragma once | ||
|
||
#define EXAMPLE_LCD_PIXEL_CLOCK_HZ (21 * 1000 * 1000) | ||
#define EXAMPLE_LCD_BK_LIGHT_ON_LEVEL 1 | ||
#define EXAMPLE_LCD_BK_LIGHT_OFF_LEVEL !EXAMPLE_LCD_BK_LIGHT_ON_LEVEL | ||
#define EXAMPLE_PIN_NUM_BK_LIGHT -1 | ||
#define EXAMPLE_PIN_NUM_HSYNC 46 | ||
#define EXAMPLE_PIN_NUM_VSYNC 3 | ||
#define EXAMPLE_PIN_NUM_DE 5 | ||
#define EXAMPLE_PIN_NUM_PCLK 7 | ||
#define EXAMPLE_PIN_NUM_DATA0 14 // B3 | ||
#define EXAMPLE_PIN_NUM_DATA1 38 // B4 | ||
#define EXAMPLE_PIN_NUM_DATA2 18 // B5 | ||
#define EXAMPLE_PIN_NUM_DATA3 17 // B6 | ||
#define EXAMPLE_PIN_NUM_DATA4 10 // B7 | ||
#define EXAMPLE_PIN_NUM_DATA5 39 // G2 | ||
#define EXAMPLE_PIN_NUM_DATA6 0 // G3 | ||
#define EXAMPLE_PIN_NUM_DATA7 45 // G4 | ||
#define EXAMPLE_PIN_NUM_DATA8 48 // G5 | ||
#define EXAMPLE_PIN_NUM_DATA9 47 // G6 | ||
#define EXAMPLE_PIN_NUM_DATA10 21 // G7 | ||
#define EXAMPLE_PIN_NUM_DATA11 1 // R3 | ||
#define EXAMPLE_PIN_NUM_DATA12 2 // R4 | ||
#define EXAMPLE_PIN_NUM_DATA13 42 // R5 | ||
#define EXAMPLE_PIN_NUM_DATA14 41 // R6 | ||
#define EXAMPLE_PIN_NUM_DATA15 40 // R7 | ||
#define EXAMPLE_PIN_NUM_DISP_EN -1 | ||
|
||
// The pixel number in horizontal and vertical | ||
#define EXAMPLE_LCD_H_RES 800 | ||
#define EXAMPLE_LCD_V_RES 480 | ||
#define WAVESHARE_LCD_H_RES 800 | ||
#define WAVESHARE_LCD_V_RES 480 | ||
|
||
#define BUFFER_HEIGHT (EXAMPLE_LCD_V_RES / 10) | ||
#define EXAMPLE_LVGL_TICK_PERIOD_MS 5 |