forked from bdring/FluidDial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
87 lines (82 loc) · 2.66 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
; 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
[common]
build_flags =
-DJSP_USE_CHARP
-DE4_POS_T
-DVERBATIM_GCODE_MODES
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/[email protected]
monitor_filters=esp32_exception_decoder
board_build.filesystem = littlefs
upload_flags=--no-stub
lib_deps =
${common.lib_deps}
m5stack/M5Unified
m5stack/M5Dial
build_flags =
${common.build_flags}
-DUSE_M5
-DFNC_BAUD=1000000
-DDEBUG_TO_USB
extra_scripts = git-version.py
build_src_filter = ${common.build_src_filter} +<SystemArduino.cpp> +<HardwareM5Dial.cpp>
[env:cyd]
; 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=921600
board_build.filesystem = littlefs
lib_deps =
${common.lib_deps}
; m5stack/M5Unified
; LovyanGFX=https://github.com/lovyan03/LovyanGFX#f5445e5
LovyanGFX=https://github.com/lovyan03/LovyanGFX#develop
build_flags =
${common.build_flags}
-DUSE_LOVYANGFX
-DFNC_BAUD=1000000
-DLGFX_ESP32_2432S028
-DDEBUG_TO_USB
extra_scripts = git-version.py
build_src_filter = ${common.build_src_filter} +<SystemArduino.cpp> +<Hardware2432.cpp> +<Touch_Class.cpp>
[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>