-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
54 lines (51 loc) · 1.46 KB
/
platformio.ini
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
[env:ESP32-2432S028R] ; CYD (cheap-yellow-display)
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
upload_speed = 921600
board_build.partitions = huge_app.csv ; 3145728 bytes application
; note: dependencies have been included in 'lib'
;lib_deps =
; bodmer/TFT_eSPI@^2.5.43
; https://github.com/PaulStoffregen/XPT2046_Touchscreen.git#v1.4
build_flags =
; log level (0: none, 1: error, 2: warning, 3: info, 4: debug, 5: verbose)
-D CORE_DEBUG_LEVEL=5
; setup TFT_eSPI
; manufacturer provided settings from 'etc/User_Setup.h'
-D USER_SETUP_LOADED
-D ILI9341_2_DRIVER
-D TFT_WIDTH=240
-D TFT_HEIGHT=320
-D TFT_MISO=12
-D TFT_MOSI=13
-D TFT_SCLK=14
-D TFT_CS=15
-D TFT_DC=2
-D TFT_RST=12
-D TFT_BL=21
-D TFT_BACKLIGHT_ON=HIGH
-D SPI_FREQUENCY=55000000
-D SPI_READ_FREQUENCY=20000000
-D SPI_TOUCH_FREQUENCY=2500000
-D TOUCH_CS=33
; setup XPT2046_Touchscreen
-D XPT2046_IRQ=36
-D XPT2046_MOSI=32
-D XPT2046_MISO=39
-D XPT2046_CLK=25
-D XPT2046_CS=33
; setup RGB led
-D CYD_LED_RED=4
-D CYD_LED_GREEN=16
-D CYD_LED_BLUE=17
; setup light dependant resistor (LDR)
-D CYD_LDR=34
; calibration of touch screen
-D TOUCH_SCREEN_MIN_X=500
-D TOUCH_SCREEN_MAX_X=3700
-D TOUCH_SCREEN_MIN_Y=400
-D TOUCH_SCREEN_MAX_Y=3700
build_src_flags = -Wunused-variable -Wuninitialized