1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-01 02:21:46 +02:00

Merge branch 'YamlSettings' of https://github.com/bdring/Grbl_Esp32 into YamlSettings

This commit is contained in:
Mitch Bradley
2021-05-19 15:21:09 -10:00
3 changed files with 22 additions and 8 deletions

View File

@@ -5,4 +5,7 @@ axes:
number_axis: 3
coolant:
flood: gpio.2
flood: gpio.26:low
probe:
pin: gpio.12

View File

@@ -28,8 +28,10 @@ void CoolantControl::init() {
static bool init_message = true; // used to show messages only once.
if (init_message) {
grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Flood coolant on pin %s", flood_.name().c_str());
grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Mist coolant on pin %s", mist_.name().c_str());
if (!flood_.undefined())
grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Flood coolant on pin %s", flood_.name().c_str());
if (!mist_.undefined())
grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Mist coolant on pin %s", mist_.name().c_str());
init_message = false;
}

View File

@@ -1,3 +1,13 @@
; 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]
src_dir = Grbl_Esp32
lib_dir = libraries
@@ -5,7 +15,6 @@ test_dir = Grbl_Esp32/test
data_dir = Grbl_Esp32/data
default_envs = release
;extra_configs=debug.ini
build_dir = Firmware
[common_env_data]
lib_deps_builtin =
@@ -26,7 +35,7 @@ lib_deps_builtin =
[common]
build_flags =
;-DMACHINE_FILENAME=test_drive.h ;Remove ";" from the beginning of this line and specify the machine file
;-DMACHINE_FILENAME=test_drive.h ;Remove ";" from the beginning of this line and specify the machine file
-DCORE_DEBUG_LEVEL=0
-Wno-unused-variable
-Wno-unused-function
@@ -35,7 +44,7 @@ build_flags =
lib_deps =
TMCStepper@>=0.7.0,<1.0.0
platform = espressif32
board = esp32dev@3.0.0
board = esp32dev
framework = arduino
upload_speed = 921600
board_build.partitions = min_spiffs.csv
@@ -49,8 +58,8 @@ board_build.f_flash = 80000000L
board_build.flash_mode = qio
build_flags = ${common.build_flags}
src_filter =
+<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<*.ino> +<src/>
-<.git/> -<data/> -<test/> -<tests/> -<Custom/>
+<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<*.ino> +<src/>
-<.git/> -<data/> -<test/> -<tests/>
[env:release]
lib_deps =