-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathplatformio.ini
More file actions
148 lines (138 loc) · 4.49 KB
/
platformio.ini
File metadata and controls
148 lines (138 loc) · 4.49 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
; 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
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = m5dial, cyddial
[common]
build_flags =
!python ./git-version.py
-DJSP_USE_CHARP
-DE4_POS_T
-DVERBATIM_GCODE_MODES
-DWEBSOCKETS_TCP_TIMEOUT=750
lib_deps =
https://github.com/MitchBradley/json-streaming-parser#charp-1.0.2
https://github.com/MitchBradley/GrblParser#9108f54
build_src_filter = +<*.c> +<*.h> +<*.cpp> +<*.hpp> -<System*.cpp> -<Hardware*.cpp> +<System.cpp> -<Touch_Class.cpp>
[env:m5dial]
; Pendant based on M5Dial
; http://wiki.fluidnc.com/en/hardware/official/M5Dial_Pendant
platform = espressif32
board = m5stack-stamps3
framework = arduino
platform_packages =
platformio/framework-arduinoespressif32@3.20017.0
monitor_filters=esp32_exception_decoder
board_build.filesystem = littlefs
upload_flags=--no-stub
lib_deps =
${common.lib_deps}
m5stack/M5Unified
m5stack/M5Dial
links2004/WebSockets @ ^2.4.0
build_flags =
${common.build_flags}
-DUSE_M5
-DUSE_WIFI
-DDEBUG_TO_USB
custom_filesystem_start=0x670000
extra_scripts = ./build_merged.py
build_src_filter = ${common.build_src_filter} +<SystemArduino.cpp> +<HardwareM5Dial.cpp>
[env:cyd_base]
; Pendant based on a 2432S028 "Cheap Yellow Display" and a hand wheel pulse encoder
; http://wiki.fluidnc.com/en/hardware/official/CYD_Dial_Pendant
platform = espressif32
board = esp32dev
framework = arduino
platform_packages =
platformio/framework-arduinoespressif32@^3.20016.0
monitor_filters=esp32_exception_decoder
monitor_speed=115200
upload_speed=748800
board_build.filesystem = littlefs
upload_flags=--no-stub
lib_deps =
${common.lib_deps}
; m5stack/M5Unified
LovyanGFX=https://github.com/lovyan03/LovyanGFX#develop
links2004/WebSockets @ ^2.4.0
build_flags =
${common.build_flags}
-DUSE_LOVYANGFX
-DUSE_WIFI
;-DCORE_DEBUG_LEVEL=5
-DCYD_BUTTONS
custom_filesystem_start=0x290000
extra_scripts = ./build_merged.py
build_src_filter = ${common.build_src_filter} +<SystemArduino.cpp> +<Hardware2432.cpp> +<Touch_Class.cpp> -<cyd/*>
# This works for both resistive and capacitive CYDs, chosen at initial startup
[env:cyddial]
extends = env:cyd_base
build_flags =
${env:cyd_nodebug.build_flags}
-DCYD_BUTTONS
-DRESISTIVE_CYD
-DCAPACITIVE_CYD
; -DDEV_SKIP_TO_SCENE=multiJogScene ; uncomment to test different scenes
# This is the original CYD build for a resistive CYD
[env:cyd_resistive]
extends = env:cyd_base
build_flags =
${env:cyd_base.build_flags}
-DDEBUG_TO_USB
-DRESISTIVE_CYD
# This is for a capacitive CYD without buttons or lockout
[env:cyd_nodebug]
extends = env:cyd_base
build_flags =
${env:cyd_base.build_flags}
-DCAPACITIVE_CYD
# This is for a capacitive CYD with physical buttons
[env:cyd_buttons]
extends = env:cyd_nodebug
build_flags =
${env:cyd_nodebug.build_flags}
-DCYD_BUTTONS
[env:windows]
; Runs the code under Windows, useful for development
lib_deps =
${common.lib_deps}
m5stack/M5Unified@^0.1.10
platform = native
build_type = release
build_flags = -O0 -xc++ -std=c++17 -lSDL2
${common.build_flags}
-DWINDOWS
-DUSE_M5
-DM5GFX_BOARD=board_M5Dial
-I"C:/msys64/mingw32/include/SDL2" ; for Windows SDL2
-L"C:/msys64/mingw32/lib" ; for Windows SDL2
build_src_filter = ${common.build_src_filter} +<SystemWindows.cpp> -<Encoder.cpp>
[env:macos]
; Runs the code on macOS with SDL2 — preview GUI without flashing
; Requires SDL2: brew install sdl2
; Build: pio run -e macos
; Run: .pio/build/macos/program (preview mode, no FluidNC)
; Run: .pio/build/macos/program /dev/tty.xxx (connected to FluidNC via serial)
lib_deps =
${common.lib_deps}
m5stack/M5Unified@^0.1.10
platform = native
build_type = release
build_flags = -O0 -xc++ -std=c++17 -lSDL2
${common.build_flags}
-DMACOS
-DUSE_M5
;-DDEV_SKIP_TO_SCENE=multiJogScene ; uncomment to test different scenes
-DM5GFX_BOARD=board_M5Dial
-I"${sysenv.HOMEBREW_PREFIX}/include/SDL2" ; arm64 Mac (Apple Silicon)
-L"${sysenv.HOMEBREW_PREFIX}/lib"
-I"/usr/local/include/SDL2" ; x86_64 Mac (Intel)
-L"/usr/local/lib"
build_src_filter = ${common.build_src_filter} +<SystemMacOS.cpp> -<Encoder.cpp>