Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Pins updates
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Feb 8, 2024
1 parent cbaff4b commit a53ad3b
Show file tree
Hide file tree
Showing 210 changed files with 4,143 additions and 2,663 deletions.
4 changes: 3 additions & 1 deletion Marlin/src/inc/MarlinConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@

#include "MarlinConfigPre.h"

#ifndef __MARLIN_DEPS__
#ifdef __MARLIN_DEPS__
#include "../HAL/shared/fauxpins.h"
#else
#include "../HAL/HAL.h"
#endif

Expand Down
5 changes: 4 additions & 1 deletion Marlin/src/pins/esp32/env_validate.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
#ifndef ENV_VALIDATE_H
#define ENV_VALIDATE_H

#if NOT_TARGET(ARDUINO_ARCH_ESP32)
#error "Oops! Select an ESP32 board in 'Tools > Board.'"
#endif

#endif
10 changes: 7 additions & 3 deletions Marlin/src/pins/esp32/pins_ENWI_ESPNP.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
//
// I2S (steppers & other output-only pins)
//
#define I2S_STEPPER_STREAM
#ifndef I2S_STEPPER_STREAM
#define I2S_STEPPER_STREAM
#endif
#if ENABLED(I2S_STEPPER_STREAM)
#define I2S_WS 17
#define I2S_BCK 22
Expand Down Expand Up @@ -91,7 +93,9 @@
#define K_CS_PIN 159

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#ifndef TMC_BAUD_RATE
#define TMC_BAUD_RATE 19200
#endif

//
// Temperature Sensors
Expand All @@ -108,7 +112,7 @@

// #define FAN_SOFT_PWM_REQUIRED // check if needed

// Neopixel Rings
// NeoPixel Rings
#define NEOPIXEL_PIN 14
#define NEOPIXEL2_PIN 27

Expand Down
4 changes: 3 additions & 1 deletion Marlin/src/pins/esp32/pins_ESP32.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
//
// I2S (steppers & other output-only pins)
//
#define I2S_STEPPER_STREAM
#ifndef I2S_STEPPER_STREAM
#define I2S_STEPPER_STREAM
#endif
#if ENABLED(I2S_STEPPER_STREAM)
#define I2S_WS 25
#define I2S_BCK 26
Expand Down
6 changes: 4 additions & 2 deletions Marlin/src/pins/esp32/pins_MKS_TINYBEE.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
//
// Enable I2S stepper stream
//
#define I2S_STEPPER_STREAM
#ifndef I2S_STEPPER_STREAM
#define I2S_STEPPER_STREAM
#endif
#if ENABLED(I2S_STEPPER_STREAM)
#define I2S_WS 26
#define I2S_BCK 25
Expand Down Expand Up @@ -119,7 +121,7 @@
* ------ ------
* (BEEPER) 149 | 1 2 | 13 (BTN_ENC) (SPI MISO) 19 | 1 2 | 18 (SPI SCK)
* (LCD_EN) 21 | 3 4 | 4 (LCD_RS) (BTN_EN1) 14 | 3 4 | 5 (SPI CS)
* (LCD_D4) 0 5 6 | 16 (LCD_D5) (BTN_EN2) 12 5 6 | 23 (SPI MOSI)
* (LCD_D4) 0 | 5 6 16 (LCD_D5) (BTN_EN2) 12 | 5 6 23 (SPI MOSI)
* (LCD_D6) 15 | 7 8 | 17 (LCD_D7) (SPI_DET) 34 | 7 8 | RESET
* GND | 9 10 | 5V GND | 9 10 | 3.3V
* ------ ------
Expand Down
10 changes: 6 additions & 4 deletions Marlin/src/pins/esp32/pins_MRR_ESPE.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
//
// Enable I2S stepper stream
//
#define I2S_STEPPER_STREAM
#ifndef I2S_STEPPER_STREAM
#define I2S_STEPPER_STREAM
#endif
#if ENABLED(I2S_STEPPER_STREAM)
#define I2S_WS 26
#define I2S_BCK 25
Expand Down Expand Up @@ -119,9 +121,9 @@
#define SDSS 5
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers

//////////////////////////
// LCDs and Controllers //
//////////////////////////
//
// LCD / Controller
//

#if HAS_WIRED_LCD

Expand Down
4 changes: 4 additions & 0 deletions Marlin/src/pins/esp32/pins_PANDA_M4.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

#define BOARD_INFO_NAME "Panda_M4"

#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "PANDA M4 only supports 1 hotend / E stepper."
#endif

#include "pins_PANDA_common.h"

//
Expand Down
7 changes: 7 additions & 0 deletions Marlin/src/pins/esp32/pins_PANDA_ZHU.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@

#define BOARD_INFO_NAME "Panda_ZHU"

#if E_STEPPERS > 5
#error "PANDA ZHU supports up to 5 E steppers."
#endif
#if HAS_MULTI_HOTEND
#error "PANDA ZHU only supports 1 hotend."
#endif

#include "pins_PANDA_common.h"

//
Expand Down
10 changes: 5 additions & 5 deletions Marlin/src/pins/esp32/pins_PANDA_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
#define TEMP_BED_PIN 36 // Analog Input

#if ENABLED(MAX31856_PANDAPI)
#define MAX31856_CLK_PIN 29
#define MAX31856_MISO_PIN 24
#define MAX31856_MOSI_PIN 28
#define MAX31856_CS_PIN 27
#define TEMP_0_CLK_PIN 29
#define TEMP_0_MISO_PIN 24
#define TEMP_0_MOSI_PIN 28
#define TEMP_0_CS_PIN 27
#endif

//
Expand All @@ -86,7 +86,7 @@
* (EN1) 33 | 3 4 | (5 SDSS?) (EN) 26 | 3 4 | 27 (RS)
* (EN2) 32 5 6 | (23 MOSI?) (D4) 14 | 5 6 --
* (SDDET 2?) | 7 8 | (RESET) -- | 7 8 | --
* -- | 9 10 | -- (GND) | 9 10 | (5V)
* -- | 9 10 | -- GND | 9 10 | 5V
* ------ ------
* EXP2 EXP1
*/
Expand Down
4 changes: 3 additions & 1 deletion Marlin/src/pins/esp32/pins_RESP32_CUSTOM.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@
//
// I2S (steppers & other output-only pins)
//
#define I2S_STEPPER_STREAM
#ifndef I2S_STEPPER_STREAM
#define I2S_STEPPER_STREAM
#endif
29 changes: 29 additions & 0 deletions Marlin/src/pins/gd32f1/env_validate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2023 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#ifndef ENV_VALIDATE_H
#define ENV_VALIDATE_H

#if NOT_TARGET(__STM32F1__, STM32F1)
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
#endif

#endif
76 changes: 76 additions & 0 deletions Marlin/src/pins/gd32f1/pins_SOVOL_V131.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2023 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once

/**
* Sovol 1.3.1 (GD32F103RET6) board pin assignments
*/

#include "env_validate.h"

#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "SOVOL V131 only supports 1 hotend / E-stepper."
#define E_ERROR 1
#endif

#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "Sovol V131"
#endif
#ifndef DEFAULT_MACHINE_NAME
#define DEFAULT_MACHINE_NAME "Sovol SV06"
#endif

#include "../stm32f1/pins_CREALITY_V4.h"

#if HAS_TMC_UART

/**
* TMC2208/TMC2209 stepper drivers
*
* Hardware serial communication ports.
* If undefined software serial is used according to the pins below
*/

#define X_SERIAL_TX_PIN PC1
#define X_SERIAL_RX_PIN PC1

#define Y_SERIAL_TX_PIN PC0
#define Y_SERIAL_RX_PIN PC0

#define Z_SERIAL_TX_PIN PA15
#define Z_SERIAL_RX_PIN PA15

#define E0_SERIAL_TX_PIN PC14
#define E0_SERIAL_RX_PIN PC14

// Reduce baud rate to improve software serial reliability
#ifndef TMC_BAUD_RATE
#define TMC_BAUD_RATE 19200
#endif

#endif // HAS_TMC_UART

//
// SD Card
//
#define ONBOARD_SPI_DEVICE 1
#define ONBOARD_SD_CS_PIN PA4 // SDSS
Loading

0 comments on commit a53ad3b

Please sign in to comment.