Skip to content

Commit

Permalink
Remove "SKR_MINI_E3_V2"
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Oct 17, 2022
1 parent 0a7ff0c commit 0aae6af
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 32 deletions.
43 changes: 30 additions & 13 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,58 @@
*/
#pragma once

#define SKR_MINI_E3_V2

#define BOARD_INFO_NAME "BTT SKR Mini E3 V2.0"
#define BOARD_CUSTOM_BUILD_FLAGS -DTONE_CHANNEL=4 -DTONE_TIMER=4 -DTIMER_TONE=4

// Onboard I2C EEPROM
#if NO_EEPROM_SELECTED
#define I2C_EEPROM
#define SOFT_I2C_EEPROM
#define MARLIN_EEPROM_SIZE 0x1000 // 4K
#define I2C_SDA_PIN PB7
#define I2C_SCL_PIN PB6
#define MARLIN_EEPROM_SIZE 0x1000 // 4K
#define I2C_SDA_PIN PB7
#define I2C_SCL_PIN PB6
#undef NO_EEPROM_SELECTED
#endif

#include "pins_BTT_SKR_MINI_E3_common.h"
#define FAN_PIN PC6

#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "BTT SKR Mini E3 V2.0"
#endif
//
// USB connect control
//
#define USB_CONNECT_PIN PA14
#define USB_CONNECT_INVERTING false

/**
* SKR Mini E3 V2.0
* ------
* (BEEPER) PB5 | 1 2 | PA15 (BTN_ENC)
* (BTN_EN1) PA9 | 3 4 | RESET
* (BTN_EN2) PA10 5 6 | PB9 (LCD_D4)
* (LCD_RS) PB8 | 7 8 | PB15 (LCD_EN)
* GND | 9 10 | 5V
* ------
* EXP1
*/
#define EXP1_02_PIN PA15
#define EXP1_08_PIN PB15

#include "pins_BTT_SKR_MINI_E3_common.h"

// Release PA13/PA14 (led, usb control) from SWD pins
#define DISABLE_DEBUG

#ifndef NEOPIXEL_PIN
#define NEOPIXEL_PIN PA8 // LED driving pin
#define NEOPIXEL_PIN PA8 // LED driving pin
#endif

#ifndef PS_ON_PIN
#define PS_ON_PIN PC13 // Power Supply Control
#define PS_ON_PIN PC13 // Power Supply Control
#endif

#define FAN1_PIN PC7
#define FAN1_PIN PC7

#ifndef CONTROLLER_FAN_PIN
#define CONTROLLER_FAN_PIN FAN1_PIN
#define CONTROLLER_FAN_PIN FAN1_PIN
#endif

#if HAS_TMC_UART
Expand Down
31 changes: 12 additions & 19 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,38 +100,31 @@
#define HEATER_0_PIN PC8 // "HE"
#define HEATER_BED_PIN PC9 // "HB"

#ifdef SKR_MINI_E3_V2
#define FAN_PIN PC6
#else
#ifndef FAN_PIN
#define FAN_PIN PA8 // "FAN0"
#endif

//
// USB connect control
//
#ifdef SKR_MINI_E3_V2
#define USB_CONNECT_PIN PA14
#else
#ifndef USB_CONNECT_PIN
#define USB_CONNECT_PIN PC13
#endif

#define USB_CONNECT_INVERTING false

/**
* SKR Mini E3 V1.0, V1.2 SKR Mini E3 V2.0
* ------ ------
* (BEEPER) PB5 | 1 2 | PB6 (BTN_ENC) (BEEPER) PB5 | 1 2 | PA15 (BTN_ENC)
* (BTN_EN1) PA9 | 3 4 | RESET (BTN_EN1) PA9 | 3 4 | RESET
* (BTN_EN2) PA10 5 6 | PB9 (LCD_D4) (BTN_EN2) PA10 5 6 | PB9 (LCD_D4)
* (LCD_RS) PB8 | 7 8 | PB7 (LCD_EN) (LCD_RS) PB8 | 7 8 | PB15 (LCD_EN)
* GND | 9 10 | 5V GND | 9 10 | 5V
* ------ ------
* EXP1 EXP1
* SKR Mini E3 V1.0, V1.2
* ------
* (BEEPER) PB5 | 1 2 | PB6 (BTN_ENC)
* (BTN_EN1) PA9 | 3 4 | RESET
* (BTN_EN2) PA10 5 6 | PB9 (LCD_D4)
* (LCD_RS) PB8 | 7 8 | PB7 (LCD_EN)
* GND | 9 10 | 5V
* ------
* EXP1
*/
#ifdef SKR_MINI_E3_V2
#define EXP1_02_PIN PA15
#define EXP1_08_PIN PB15
#else
#ifndef EXP1_02_PIN
#define EXP1_02_PIN PB6
#define EXP1_08_PIN PB7
#endif
Expand Down

0 comments on commit 0aae6af

Please sign in to comment.