From ded58b4ba24b2ab7ed0db3607defedb834e6d46b Mon Sep 17 00:00:00 2001 From: John Scancella Date: Thu, 4 May 2023 15:55:22 -0400 Subject: [PATCH] feat: add ability to rename SBC --- SBCs/cb1.cfg | 6 ++++++ SBCs/orange-pi.cfg | 6 ++++++ SBCs/raspberry-pi.cfg | 6 ++++++ SBCs/rock-pi.cfg | 6 ++++++ printers/base.cfg | 3 --- templates/custom-printer.template.cfg | 10 ++++++++++ templates/prusa-mini-printer.template.cfg | 9 +++++++++ templates/prusa-mk3s-printer.template.cfg | 9 +++++++++ templates/v-core-3-printer.template.cfg | 9 +++++++++ templates/v-core-pro-printer.template.cfg | 9 +++++++++ templates/v-minion-printer.template.cfg | 9 +++++++++ templates/voron-v01-printer.template.cfg | 9 +++++++++ templates/voron-v24-printer.template.cfg | 9 +++++++++ 13 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 SBCs/cb1.cfg create mode 100644 SBCs/orange-pi.cfg create mode 100644 SBCs/raspberry-pi.cfg create mode 100644 SBCs/rock-pi.cfg diff --git a/SBCs/cb1.cfg b/SBCs/cb1.cfg new file mode 100644 index 00000000..5168f6b2 --- /dev/null +++ b/SBCs/cb1.cfg @@ -0,0 +1,6 @@ +# WARNING. DO NOT EDIT THIS FILE. +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. + +[temperature_sensor cb1] +sensor_type: temperature_host \ No newline at end of file diff --git a/SBCs/orange-pi.cfg b/SBCs/orange-pi.cfg new file mode 100644 index 00000000..81c784b7 --- /dev/null +++ b/SBCs/orange-pi.cfg @@ -0,0 +1,6 @@ +# WARNING. DO NOT EDIT THIS FILE. +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. + +[temperature_sensor orange_pi] +sensor_type: temperature_host \ No newline at end of file diff --git a/SBCs/raspberry-pi.cfg b/SBCs/raspberry-pi.cfg new file mode 100644 index 00000000..c4619213 --- /dev/null +++ b/SBCs/raspberry-pi.cfg @@ -0,0 +1,6 @@ +# WARNING. DO NOT EDIT THIS FILE. +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. + +[temperature_sensor raspberry_pi] +sensor_type: temperature_host \ No newline at end of file diff --git a/SBCs/rock-pi.cfg b/SBCs/rock-pi.cfg new file mode 100644 index 00000000..a3b4318c --- /dev/null +++ b/SBCs/rock-pi.cfg @@ -0,0 +1,6 @@ +# WARNING. DO NOT EDIT THIS FILE. +# To override settings from this file, you can copy and paste the relevant +# sections into your printer.cfg and change it there. + +[temperature_sensor rock_pi] +sensor_type: temperature_host \ No newline at end of file diff --git a/printers/base.cfg b/printers/base.cfg index f9e2a782..d52479e7 100644 --- a/printers/base.cfg +++ b/printers/base.cfg @@ -14,9 +14,6 @@ gcode: # 2 hour timeout timeout: 7200 -[temperature_sensor raspberry_pi] -sensor_type: temperature_host - [skew_correction] [input_shaper] diff --git a/templates/custom-printer.template.cfg b/templates/custom-printer.template.cfg index fade921d..fd1d38b8 100644 --- a/templates/custom-printer.template.cfg +++ b/templates/custom-printer.template.cfg @@ -13,6 +13,16 @@ # Read more about klipper here: https://www.klipper3d.org/Overview.html + +############################################################################################################# +### SINGLE BOARD COMPUTER +### Pick the computer you have installed and wired in your printer. +############################################################################################################# +[include RatOS/SBCs/raspberry-pi.cfg] +#[include RatOS/SBCs/cb1.cfg] +#[include RatOS/SBCs/orange-pi.cfg] +#[include RatOS/SBCs/rock-pi.cfg] + ############################################################################################################# ### CONTROL BOARD ### Pick the board you have installed and wired in your printer. diff --git a/templates/prusa-mini-printer.template.cfg b/templates/prusa-mini-printer.template.cfg index c0170373..4595acdb 100644 --- a/templates/prusa-mini-printer.template.cfg +++ b/templates/prusa-mini-printer.template.cfg @@ -14,6 +14,15 @@ # Read more about klipper here: https://www.klipper3d.org/Overview.html +############################################################################################################# +### SINGLE BOARD COMPUTER +### Pick the computer you have installed and wired in your printer. +############################################################################################################# +[include RatOS/SBCs/raspberry-pi.cfg] +#[include RatOS/SBCs/cb1.cfg] +#[include RatOS/SBCs/orange-pi.cfg] +#[include RatOS/SBCs/rock-pi.cfg] + ############################################################################################################# ### CONTROL BOARD ### Pick the board you have installed and wired in your printer. diff --git a/templates/prusa-mk3s-printer.template.cfg b/templates/prusa-mk3s-printer.template.cfg index 401503e9..2e57f7eb 100644 --- a/templates/prusa-mk3s-printer.template.cfg +++ b/templates/prusa-mk3s-printer.template.cfg @@ -13,6 +13,15 @@ # Read more about klipper here: https://www.klipper3d.org/Overview.html +############################################################################################################# +### SINGLE BOARD COMPUTER +### Pick the computer you have installed and wired in your printer. +############################################################################################################# +[include RatOS/SBCs/raspberry-pi.cfg] +#[include RatOS/SBCs/cb1.cfg] +#[include RatOS/SBCs/orange-pi.cfg] +#[include RatOS/SBCs/rock-pi.cfg] + ############################################################################################################# ### CONTROL BOARD ### Pick the board you have installed and wired in your printer. diff --git a/templates/v-core-3-printer.template.cfg b/templates/v-core-3-printer.template.cfg index c3098090..e3367632 100644 --- a/templates/v-core-3-printer.template.cfg +++ b/templates/v-core-3-printer.template.cfg @@ -13,6 +13,15 @@ # Read more about klipper here: https://www.klipper3d.org/Overview.html +############################################################################################################# +### SINGLE BOARD COMPUTER +### Pick the computer you have installed and wired in your printer. +############################################################################################################# +[include RatOS/SBCs/raspberry-pi.cfg] +#[include RatOS/SBCs/cb1.cfg] +#[include RatOS/SBCs/orange-pi.cfg] +#[include RatOS/SBCs/rock-pi.cfg] + ############################################################################################################# ### CONTROL BOARD ### Pick the board you have installed and wired in your printer. diff --git a/templates/v-core-pro-printer.template.cfg b/templates/v-core-pro-printer.template.cfg index 9b76180e..16a0cb3e 100644 --- a/templates/v-core-pro-printer.template.cfg +++ b/templates/v-core-pro-printer.template.cfg @@ -13,6 +13,15 @@ # Read more about klipper here: https://www.klipper3d.org/Overview.html +############################################################################################################# +### SINGLE BOARD COMPUTER +### Pick the computer you have installed and wired in your printer. +############################################################################################################# +[include RatOS/SBCs/raspberry-pi.cfg] +#[include RatOS/SBCs/cb1.cfg] +#[include RatOS/SBCs/orange-pi.cfg] +#[include RatOS/SBCs/rock-pi.cfg] + ############################################################################################################# ### CONTROL BOARD ### Pick the board you have installed and wired in your printer. diff --git a/templates/v-minion-printer.template.cfg b/templates/v-minion-printer.template.cfg index 7160998e..b0f2308c 100644 --- a/templates/v-minion-printer.template.cfg +++ b/templates/v-minion-printer.template.cfg @@ -13,6 +13,15 @@ # Read more about klipper here: https://www.klipper3d.org/Overview.html +############################################################################################################# +### SINGLE BOARD COMPUTER +### Pick the computer you have installed and wired in your printer. +############################################################################################################# +[include RatOS/SBCs/raspberry-pi.cfg] +#[include RatOS/SBCs/cb1.cfg] +#[include RatOS/SBCs/orange-pi.cfg] +#[include RatOS/SBCs/rock-pi.cfg] + ############################################################################################################# ### CONTROL BOARD ### Pick the board you have installed and wired in your printer. diff --git a/templates/voron-v01-printer.template.cfg b/templates/voron-v01-printer.template.cfg index 45c2fb6e..dc546cdd 100644 --- a/templates/voron-v01-printer.template.cfg +++ b/templates/voron-v01-printer.template.cfg @@ -13,6 +13,15 @@ # Read more about klipper here: https://www.klipper3d.org/Overview.html +############################################################################################################# +### SINGLE BOARD COMPUTER +### Pick the computer you have installed and wired in your printer. +############################################################################################################# +[include RatOS/SBCs/raspberry-pi.cfg] +#[include RatOS/SBCs/cb1.cfg] +#[include RatOS/SBCs/orange-pi.cfg] +#[include RatOS/SBCs/rock-pi.cfg] + ############################################################################################################# ### CONTROL BOARD ### Pick the board you have installed and wired in your printer. diff --git a/templates/voron-v24-printer.template.cfg b/templates/voron-v24-printer.template.cfg index e9b20725..d136cd9c 100644 --- a/templates/voron-v24-printer.template.cfg +++ b/templates/voron-v24-printer.template.cfg @@ -13,6 +13,15 @@ # Read more about klipper here: https://www.klipper3d.org/Overview.html +############################################################################################################# +### SINGLE BOARD COMPUTER +### Pick the computer you have installed and wired in your printer. +############################################################################################################# +[include RatOS/SBCs/raspberry-pi.cfg] +#[include RatOS/SBCs/cb1.cfg] +#[include RatOS/SBCs/orange-pi.cfg] +#[include RatOS/SBCs/rock-pi.cfg] + ############################################################################################################# ### CONTROL BOARD ### Pick the board you have installed and wired in your printer.