|
|
|
@ -16,34 +16,42 @@
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ALFAWISE U30 (STM32F103VET6) board pin assignments
|
|
|
|
|
* Longer3D LK1/LK2 & Alfawise U20/U30 (STM32F103VET6) board pin assignments
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#if !defined(__STM32F1__) && !defined(STM32F1xx)
|
|
|
|
|
#error "Oops! Select a STM32F1 board in 'Tools > Board.'"
|
|
|
|
|
#elif HOTENDS > 1 || E_STEPPERS > 1
|
|
|
|
|
#error "LONGER3D only supports 1 hotend / E-stepper. Comment out this line to continue."
|
|
|
|
|
#error "Longer3D board only supports 1 hotend / E-stepper. Comment out this line to continue."
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define BOARD_NAME "Longer3D"
|
|
|
|
|
#define ALFAWISE_UX0 // Common to all Alfawise STM32F1 boards
|
|
|
|
|
#define ALFAWISE_UX0 // Common to all Longer3D STM32F1 boards (used for Open drain mosfets)
|
|
|
|
|
|
|
|
|
|
//#define DISABLE_DEBUG // We still want to debug with STLINK...
|
|
|
|
|
#define DISABLE_JTAG // We free the jtag pins (PA15) but keep STLINK
|
|
|
|
|
// Release PB4 (STEP_X_PIN) from JTAG NRST role.
|
|
|
|
|
//#define DISABLE_DEBUG // > Hobi : We still want to debug with STLINK...
|
|
|
|
|
#define DISABLE_JTAG // we free the jtag pins (PA15) but keep STLINK
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Limit Switches
|
|
|
|
|
//
|
|
|
|
|
#define X_STOP_PIN PC1 // pin 16
|
|
|
|
|
//#define X_MAX_PIN PC0 // pin 15 Used as filament sensor on Alfawise setup
|
|
|
|
|
#define X_MIN_PIN PC1 // pin 16
|
|
|
|
|
#define X_MAX_PIN PC0 // pin 15 (Filament sensor on Alfawise setup)
|
|
|
|
|
#define Y_MIN_PIN PC15 // pin 9
|
|
|
|
|
//#define Y_MAX_PIN PC14 // pin 8 Unused in stock Alfawise setup
|
|
|
|
|
#define Y_MAX_PIN PC14 // pin 8 (Unused in stock Alfawise setup)
|
|
|
|
|
#define Z_MIN_PIN PE6 // pin 5 Standard Endstop or Z_Probe endstop function
|
|
|
|
|
//#define Z_MAX_PIN PE5 // pin 4 Unused in stock Alfawise setup
|
|
|
|
|
#define Z_MAX_PIN PE5 // pin 4 (Unused in stock Alfawise setup)
|
|
|
|
|
// May be used for BLTouch Servo function on older variants (<= V08)
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Filament Sensor
|
|
|
|
|
//
|
|
|
|
|
#ifndef FIL_RUNOUT_PIN
|
|
|
|
|
#define FIL_RUNOUT_PIN PC0 // XMAX plug on PCB used as filament runout sensor on Alfawise boards (inverting true)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Steppers
|
|
|
|
|
//
|
|
|
|
@ -80,11 +88,6 @@
|
|
|
|
|
#define FAN_MIN_PWM 35 // Fan will not start in 1-30 range
|
|
|
|
|
#define FAN_MAX_PWM 255
|
|
|
|
|
|
|
|
|
|
// Filament Sensor
|
|
|
|
|
#ifndef FIL_RUNOUT_PIN
|
|
|
|
|
#define FIL_RUNOUT_PIN PC0 // XMAX plug on PCB used as filament runout sensor on Alfawise boards (inverting true)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
//#define BEEPER_PIN PD13 // pin 60 (Servo PWM output 5V/GND on Board V0G+) made for BL-Touch sensor
|
|
|
|
|
// Can drive a PC Buzzer, if connected between PWM and 5V pins
|
|
|
|
|
|
|
|
|
@ -93,17 +96,14 @@
|
|
|
|
|
//
|
|
|
|
|
// PWM
|
|
|
|
|
//
|
|
|
|
|
//#define NUM_SERVOS 1
|
|
|
|
|
//#define SERVO0_TIMER_NUM 1 // General or Adv. timer to use for the servo PWM (2 & 5 are reserved)
|
|
|
|
|
|
|
|
|
|
#define SERVO0_PWM_OD
|
|
|
|
|
#define SERVO0_PIN PD13 // Open drain PWM pin on the V0G (GND or floating 5V)
|
|
|
|
|
#define SERVO0_PWM_OD // Comment this if using PE5
|
|
|
|
|
|
|
|
|
|
//#define SERVO0_PIN PE5 // Pulled up PWM pin on the V08 (3.3V or 0)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Note: Alfawise screens use various TFT controllers. Supported screens
|
|
|
|
|
* are based on the ILI9342, ILI9328 and ST7798V. Define init sequences for
|
|
|
|
|
* are based on the ILI9341, ILI9328 and ST7798V. Define init sequences for
|
|
|
|
|
* other screens in u8g_dev_tft_320x240_upscale_from_128x64.cpp
|
|
|
|
|
*
|
|
|
|
|
* If the screen stays white, disable 'LCD_RESET_PIN' to let the bootloader
|
|
|
|
@ -112,7 +112,6 @@
|
|
|
|
|
* Setting an 'LCD_RESET_PIN' may cause a flicker when entering the LCD menu
|
|
|
|
|
* because Marlin uses the reset as a failsafe to revive a glitchy LCD.
|
|
|
|
|
*/
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#define LCD_RESET_PIN PC4 // pin 33
|
|
|
|
|
#define LCD_BACKLIGHT_PIN PD12 // pin 59
|
|
|
|
@ -146,7 +145,6 @@
|
|
|
|
|
//
|
|
|
|
|
// SPI1 (EEPROM W25Q64 + DAC OUT)
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#undef E2END
|
|
|
|
|
#define E2END 0x7FF // EEPROM end address (reserve 2kB on sd/sram, real spi one is 8MB/64Mbits)
|
|
|
|
|
/*
|
|
|
|
|