-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
92 lines (84 loc) · 2.47 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
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
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = esp32-m5stack
; default_envs = native
; Shared options
[env]
build_flags =
-D LV_CONF_INCLUDE_SIMPLE
; -I src Required to find lv_conf.h
-I src
lib_deps =
;lvgl=https://github.com/littlevgl/lvgl/archive/master.zip
lvgl=https://github.com/lvgl/lvgl.git
lib_archive = false
[env:native]
platform = native
extra_scripts = support/sdl2_build_extra.py
build_flags =
${env.build_flags}
; Use 32-bits build when possible, for correct memory stat display. You need
; `:i386` sdl2 libs installed. Comment this option for 64-bits build.
!python -c "import platform; print('-m32' if platform.system() in [ 'Linux' ] else '')"
; Add recursive dirs for hal headers search
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/sdl2')]))"
-lSDL2
; SDL drivers options
-D LV_LVGL_H_INCLUDE_SIMPLE
-D LV_DRV_NO_CONF
-D USE_MONITOR
-D MONITOR_ZOOM=2
-D USE_MOUSE
-D USE_MOUSEWHEEL
-D USE_KEYBOARD
lib_deps =
${env.lib_deps}
lv_drivers=https://github.com/lvgl/lv_drivers.git
; lv_drivers=https://github.com/littlevgl/lv_drivers/archive/7d71907c1d6b02797d066f50984b866e080ebeed.zip
src_filter =
+<*>
+<../hal/sdl2>
[env:stm32f429_disco]
platform = ststm32
board = disco_f429zi
framework = stm32cube
build_flags =
${env.build_flags}
; header's default is 25MHz, but board uses 8MHz crystal
-D HSE_VALUE=8000000
; Add recursive dirs for hal headers search
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/stm32f429_disco')]))"
lib_deps =
${env.lib_deps}
BSP-ili9341
BSP-stmpe811
src_filter =
+<*>
+<../hal/stm32f429_disco>
[env:esp32-m5stack]
platform = espressif32
board = m5stack-core-esp32
framework = arduino
upload_speed = 921600
monitor_speed = 115200
build_flags =
-D M5STACK
${env.build_flags}
-DCORE_DEBUG_LEVEL=4
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/m5stack')]))"
lib_deps =
${env.lib_deps}
; TFT_eSPI
; m5stack
https://github.com/m5stack/M5Core2.git
src_filter =
+<*>
+<../hal/m5stack>