Prusa MINI Firmware overview
pins_MKS_SBASE.h File Reference

Go to the source code of this file.

Macros

#define BOARD_INFO_NAME   "MKS SBASE"
 
#define BOARD_WEBSITE_URL   "github.com/makerbase-mks/MKS-SBASE"
 
#define LED_PIN   P1_18
 
#define LED2_PIN   P1_19
 
#define LED3_PIN   P1_20
 
#define LED4_PIN   P1_21
 
#define SERVO0_PIN   P1_23
 
#define SERVO1_PIN   P2_12
 
#define SERVO2_PIN   P2_11
 
#define SERVO3_PIN   P4_28
 
#define X_MIN_PIN   P1_24
 
#define X_MAX_PIN   P1_25
 
#define Y_MIN_PIN   P1_26
 
#define Y_MAX_PIN   P1_27
 
#define Z_MIN_PIN   P1_28
 
#define Z_MAX_PIN   P1_29
 
#define Z_MIN_PROBE_PIN   P4_28
 
#define X_STEP_PIN   P2_00
 
#define X_DIR_PIN   P0_05
 
#define X_ENABLE_PIN   P0_04
 
#define Y_STEP_PIN   P2_01
 
#define Y_DIR_PIN   P0_11
 
#define Y_ENABLE_PIN   P0_10
 
#define Z_STEP_PIN   P2_02
 
#define Z_DIR_PIN   P0_20
 
#define Z_ENABLE_PIN   P0_19
 
#define E0_STEP_PIN   P2_03
 
#define E0_DIR_PIN   P0_22
 
#define E0_ENABLE_PIN   P0_21
 
#define E1_STEP_PIN   P2_08
 
#define E1_DIR_PIN   P2_13
 
#define E1_ENABLE_PIN   P4_29
 
#define TEMP_BED_PIN   0
 
#define TEMP_0_PIN   1
 
#define TEMP_1_PIN   2
 
#define TEMP_2_PIN   3
 
#define HEATER_BED_PIN   P2_05
 
#define HEATER_0_PIN   P2_07
 
#define HEATER_1_PIN   P2_06
 
#define FAN_PIN   P2_04
 
#define PIN_P0_17   P0_17
 
#define PIN_P0_16   P0_16
 
#define PIN_P0_15   P0_15
 
#define PIN_P1_22   P1_22
 
#define PIN_P1_23   P1_23
 
#define PIN_P2_12   P2_12
 
#define PIN_P2_11   P2_11
 
#define PS_ON_PIN   P0_25
 
#define ENET_MDIO   P1_17
 
#define ENET_RX_ER   P1_14
 
#define ENET_RXD1   P1_10
 
#define ENET_MOC   P1_16
 
#define REF_CLK   P1_15
 
#define ENET_RXD0   P1_09
 
#define ENET_CRS   P1_08
 
#define ENET_TX_EN   P1_04
 
#define ENET_TXD0   P1_00
 
#define ENET_TXD1   P1_01
 
#define SDCARD_CONNECTION   ONBOARD
 
#define ONBOARD_SD_CS_PIN   P0_06
 
#define PIN_P0_27   P0_27
 
#define PIN_P0_28   P0_28
 
#define PIN_P0_02   P0_02
 
#define PIN_P0_03   P0_03
 

Macro Definition Documentation

◆ BOARD_INFO_NAME

#define BOARD_INFO_NAME   "MKS SBASE"

Marlin 3D Printer Firmware Copyright (c) 2019 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 http://www.gnu.org/licenses/. MKS SBASE pin assignments

◆ BOARD_WEBSITE_URL

#define BOARD_WEBSITE_URL   "github.com/makerbase-mks/MKS-SBASE"

◆ LED_PIN

#define LED_PIN   P1_18

◆ LED2_PIN

#define LED2_PIN   P1_19

◆ LED3_PIN

#define LED3_PIN   P1_20

◆ LED4_PIN

#define LED4_PIN   P1_21

◆ SERVO0_PIN

#define SERVO0_PIN   P1_23

◆ SERVO1_PIN

#define SERVO1_PIN   P2_12

◆ SERVO2_PIN

#define SERVO2_PIN   P2_11

◆ SERVO3_PIN

#define SERVO3_PIN   P4_28

◆ X_MIN_PIN

#define X_MIN_PIN   P1_24

◆ X_MAX_PIN

#define X_MAX_PIN   P1_25

◆ Y_MIN_PIN

#define Y_MIN_PIN   P1_26

◆ Y_MAX_PIN

#define Y_MAX_PIN   P1_27

◆ Z_MIN_PIN

#define Z_MIN_PIN   P1_28

◆ Z_MAX_PIN

#define Z_MAX_PIN   P1_29

◆ Z_MIN_PROBE_PIN

#define Z_MIN_PROBE_PIN   P4_28

◆ X_STEP_PIN

#define X_STEP_PIN   P2_00

◆ X_DIR_PIN

#define X_DIR_PIN   P0_05

◆ X_ENABLE_PIN

#define X_ENABLE_PIN   P0_04

◆ Y_STEP_PIN

#define Y_STEP_PIN   P2_01

◆ Y_DIR_PIN

#define Y_DIR_PIN   P0_11

◆ Y_ENABLE_PIN

#define Y_ENABLE_PIN   P0_10

◆ Z_STEP_PIN

#define Z_STEP_PIN   P2_02

◆ Z_DIR_PIN

#define Z_DIR_PIN   P0_20

◆ Z_ENABLE_PIN

#define Z_ENABLE_PIN   P0_19

◆ E0_STEP_PIN

#define E0_STEP_PIN   P2_03

◆ E0_DIR_PIN

#define E0_DIR_PIN   P0_22

◆ E0_ENABLE_PIN

#define E0_ENABLE_PIN   P0_21

◆ E1_STEP_PIN

#define E1_STEP_PIN   P2_08

◆ E1_DIR_PIN

#define E1_DIR_PIN   P2_13

◆ E1_ENABLE_PIN

#define E1_ENABLE_PIN   P4_29

◆ TEMP_BED_PIN

#define TEMP_BED_PIN   0

◆ TEMP_0_PIN

#define TEMP_0_PIN   1

◆ TEMP_1_PIN

#define TEMP_1_PIN   2

◆ TEMP_2_PIN

#define TEMP_2_PIN   3

◆ HEATER_BED_PIN

#define HEATER_BED_PIN   P2_05

◆ HEATER_0_PIN

#define HEATER_0_PIN   P2_07

◆ HEATER_1_PIN

#define HEATER_1_PIN   P2_06

◆ FAN_PIN

#define FAN_PIN   P2_04

◆ PIN_P0_17

#define PIN_P0_17   P0_17

◆ PIN_P0_16

#define PIN_P0_16   P0_16

◆ PIN_P0_15

#define PIN_P0_15   P0_15

◆ PIN_P1_22

#define PIN_P1_22   P1_22

◆ PIN_P1_23

#define PIN_P1_23   P1_23

◆ PIN_P2_12

#define PIN_P2_12   P2_12

◆ PIN_P2_11

#define PIN_P2_11   P2_11

◆ PS_ON_PIN

#define PS_ON_PIN   P0_25

◆ ENET_MDIO

#define ENET_MDIO   P1_17

◆ ENET_RX_ER

#define ENET_RX_ER   P1_14

◆ ENET_RXD1

#define ENET_RXD1   P1_10

◆ ENET_MOC

#define ENET_MOC   P1_16

◆ REF_CLK

#define REF_CLK   P1_15

◆ ENET_RXD0

#define ENET_RXD0   P1_09

◆ ENET_CRS

#define ENET_CRS   P1_08

◆ ENET_TX_EN

#define ENET_TX_EN   P1_04

◆ ENET_TXD0

#define ENET_TXD0   P1_00

◆ ENET_TXD1

#define ENET_TXD1   P1_01

◆ SDCARD_CONNECTION

#define SDCARD_CONNECTION   ONBOARD

◆ ONBOARD_SD_CS_PIN

#define ONBOARD_SD_CS_PIN   P0_06

◆ PIN_P0_27

#define PIN_P0_27   P0_27

Smart LCD adapter

The Smart LCD adapter can be used for the two 10 pin LCD controllers such as REPRAP_DISCOUNT_SMART_CONTROLLER. It can't be used for controllers that use DOGLCD_A0, DOGLCD_CS, LCD_PINS_D5, LCD_PINS_D6 or LCD_PINS_D7. A custom cable is needed to pick up 5V for the EXP1 connection.

SD card on the LCD uses the same SPI signals as the LCD. This results in garbage/lines on the LCD display during accesses of the SD card. The menus/code has been arranged so that the garbage/lines are erased immediately after the SD card accesses are completed. Example for trinamic drivers using the J8 connector on MKs Sbase. 2130s need 1 pin for each driver. 2208/2209s need 2 pins for serial control. This board does not have enough pins to use hardware serial.

◆ PIN_P0_28

#define PIN_P0_28   P0_28

◆ PIN_P0_02

#define PIN_P0_02   P0_02

◆ PIN_P0_03

#define PIN_P0_03   P0_03