-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathplatformio.ini_examples.txt
94 lines (77 loc) · 2.42 KB
/
platformio.ini_examples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
;
; You will need to define the display and touch screen hardware in your platformio.ini file. This file contains some examples.
; Cut and paste the block for your setup into platformio.ini
;
; *************
; For the WT32-SC01 card
;
-DUSER_SETUP_LOADED=1
-DST7796_DRIVER
-DUSECAPTOUCH=1
; You don't need to define TFT_WIDTH and TFT_HEIGHT here if you are using the default setup. They are defined in the
; driver, so you just end up with a duplicate definition warning.
;-DTFT_WIDTH=480
;-DTFT_HEIGHT=320
-DSCREEN_WIDTH=480
-DSCREEN_HEIGHT=320
-DPIN_SDA=18
-DPIN_SCL=19
-DTFT_MISO=12
-DTFT_MOSI=13
-DTFT_SCLK=14
-DTFT_CS=15
-DTFT_DC=21
-DTFT_RST=22
-DTFT_BL=23
; The WT32-SC01 doesn't need TOUCH_CS to be defined to make it work, but if you don't define it you get a warning
; that it is not defined. So define it using any unused valid output pin to avoid the warning.
-DTOUCH_CS=33
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSPI_FREQUENCY=27000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
; Uncomment the define below if you want to use SLEEP and wake up on touch-- -- -- -;
; The pin where the IRQ from the touch screen is connected uses ESP - style GPIO_NUM_* instead of just pinnumber
-DTOUCH_INTERRUPT_PIN=GPIO_NUM_39
-DLV_TICK_CUSTOM=1
;
; *************
; For a generic LCD with the ILI9488 controller and resistive touch screen. Specific pins
; will be according to your wiring.
;
-DUSER_SETUP_LOADED=1
-DILI9488_DRIVER
; You don't need to define TFT_WIDTH and TFT_HEIGHT here if you are using the default setup. They are defined in the
; driver, so you just end up with a duplicate definition warning.
;-DTFT_WIDTH=480
;-DTFT_HEIGHT=320
-DSCREEN_WIDTH=480
-DSCREEN_HEIGHT=320
-DTFT_BL=32
-DTFT_BACKLIGHT_ON=HIGH
-DTFT_MISO=19
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=4
-DTOUCH_CS=21
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSPI_FREQUENCY=27000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
; Uncomment the define below if you want to use SLEEP and wake up on touch-- -- -- -;
; The pin where the IRQ from the touch screen is connected uses ESP - style GPIO_NUM_* instead of just pinnumber
-DTOUCH_INTERRUPT_PIN=GPIO_NUM_27