mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-02 02:42:36 +02:00
WIP...probe and coolant
This commit is contained in:
@@ -5,4 +5,7 @@ axes:
|
|||||||
number_axis: 3
|
number_axis: 3
|
||||||
|
|
||||||
coolant:
|
coolant:
|
||||||
flood: gpio.2
|
flood: gpio.26:low
|
||||||
|
|
||||||
|
probe:
|
||||||
|
pin: gpio.12
|
||||||
|
@@ -28,8 +28,10 @@ void CoolantControl::init() {
|
|||||||
static bool init_message = true; // used to show messages only once.
|
static bool init_message = true; // used to show messages only once.
|
||||||
|
|
||||||
if (init_message) {
|
if (init_message) {
|
||||||
grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Flood coolant on pin %s", flood_.name().c_str());
|
if (!flood_.undefined())
|
||||||
grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Mist coolant on pin %s", mist_.name().c_str());
|
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;
|
init_message = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,14 +1,22 @@
|
|||||||
|
; 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]
|
[platformio]
|
||||||
src_dir=Grbl_Esp32
|
src_dir = Grbl_Esp32
|
||||||
lib_dir=libraries
|
lib_dir = libraries
|
||||||
test_dir=Grbl_Esp32/test
|
data_dir = Grbl_Esp32/data
|
||||||
data_dir=Grbl_Esp32/data
|
default_envs = release
|
||||||
default_envs=release
|
|
||||||
;extra_configs=debug.ini
|
;extra_configs=debug.ini
|
||||||
build_dir = Firmware
|
|
||||||
|
|
||||||
[common_env_data]
|
[common_env_data]
|
||||||
lib_deps_builtin =
|
lib_deps_builtin =
|
||||||
ArduinoOTA
|
ArduinoOTA
|
||||||
BluetoothSerial
|
BluetoothSerial
|
||||||
DNSServer
|
DNSServer
|
||||||
@@ -25,40 +33,41 @@ lib_deps_builtin =
|
|||||||
WiFiClientSecure
|
WiFiClientSecure
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
build_flags =
|
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
|
-DCORE_DEBUG_LEVEL=0
|
||||||
-Wno-unused-variable
|
-Wno-unused-variable
|
||||||
-Wno-unused-function
|
-Wno-unused-function
|
||||||
|
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
lib_deps =
|
;lib_deps =
|
||||||
TMCStepper@>=0.7.0,<1.0.0
|
; TMCStepper@>=0.7.0,<1.0.0
|
||||||
platform = espressif32
|
platform = espressif32@3.0.0 ; temporary fix for lost uart rx characters
|
||||||
board = esp32dev
|
board = esp32dev
|
||||||
framework = arduino
|
framework = arduino
|
||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
board_build.partitions = min_spiffs.csv
|
board_build.partitions = min_spiffs.csv
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
monitor_flags =
|
monitor_flags =
|
||||||
--eol=CRLF
|
--eol=CRLF
|
||||||
--echo
|
--echo
|
||||||
--filter=esp32_exception_decoder
|
--filter=esp32_exception_decoder
|
||||||
board_build.f_cpu = 240000000L
|
board_build.f_cpu = 240000000L
|
||||||
; set frequency to 80MHz
|
|
||||||
board_build.f_flash = 80000000L
|
board_build.f_flash = 80000000L
|
||||||
board_build.flash_mode = qio
|
board_build.flash_mode = qio
|
||||||
build_flags = ${common.build_flags}
|
build_flags = ${common.build_flags}
|
||||||
src_filter =
|
src_filter =
|
||||||
+<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<*.ino> +<src/>
|
+<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<*.ino> +<src/>
|
||||||
-<.git/> -<data/> -<test/> -<tests/> -<Custom/>
|
-<.git/> -<data/> -<test/> -<tests/>
|
||||||
|
|
||||||
[env:release]
|
[env:release]
|
||||||
|
lib_deps =
|
||||||
|
TMCStepper@>=0.7.0,<1.0.0
|
||||||
|
ESP8266 and ESP32 OLED driver for SSD1306 displays@^4.2.0
|
||||||
|
|
||||||
[env:debug]
|
[env:debug]
|
||||||
build_type = debug
|
build_type = debug
|
||||||
|
lib_deps =
|
||||||
[env:test]
|
TMCStepper@>=0.7.0,<1.0.0
|
||||||
build_type = debug
|
ESP8266 and ESP32 OLED driver for SSD1306 displays@^4.2.0
|
||||||
test_build_project_src = true
|
|
Reference in New Issue
Block a user