-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
67 lines (65 loc) · 1.58 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
55
56
57
58
59
60
61
62
63
64
65
66
67
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter, extra scripting
; Upload options: custom port, speed and extra flags
; Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/en/stable/projectconf.html
[env:esp32]
platform = espressif32
board = esp32dev
framework = arduino
upload_speed = 921600
lib_deps = https://github.com/vanklompf/TFT_eSPI
#lib_deps = https://github.com/Bodmer/TFT_eSPI # wait for https://github.com/Bodmer/TFT_eSPI/pull/76
#fork version TFT_eSPI
board_f_cpu = 240000000L
#board_f_cpu = 800000000L
board_f_flash = 80000000L
build_flags =
-DCORE_DEBUG_LEVEL=NONE
-DUSER_SETUP_LOADED=1
-DILI9163_DRIVER=1
-DTFT_DRIVER=ILI9163
-DTFT_WIDTH=128
-DTFT_HEIGHT=128
-D R0_OFFSET_Y=3
-D R0_OFFSET_X=2
-DTFT_MISO=12
-DTFT_MOSI=13
-DTFT_SCLK=14
-DTFT_CS=15
-DTFT_DC=19
-DTFT_RST=18
-DDAC_OUT=26
-DLOAD_GLCD=1
-DSPI_FREQUENCY=20000000
-DLUA_32BITS=1
-D"lua_writestring(s,l)=gprint(s)"
-D"lua_writestringerror(s,l)=gprint(s)"
[env:m5stack]
platform = espressif32
board = esp32dev
framework = arduino
upload_speed = 921600
lib_deps = M5Stack
M5Stack-SD-Updater
board_f_cpu = 240000000L
#board_f_cpu = 800000000L
board_f_flash = 80000000L
build_flags =
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
-DILI9351_DRIVER=1
-DUSER_SETUP_LOADED=1
-DTFT_MISO=19
-DTFT_MOSI=23
-DTFT_SCLK=18
-DTFT_CS=14
-DTFT_DC=27
-DTFT_RST=33
-DTFT_BL=32
-DM5STACK=1
-DLUA_32BITS=1
-DDAC_OUT=25
extra_script = extra_script.py