FYSETC BLTouch config and more (#14668)
This commit is contained in:
@ -37,9 +37,12 @@
|
||||
uint8_t u8g_com_HAL_STM32F1_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
||||
#define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_STM32F1_sw_spi_fn
|
||||
uint8_t u8g_com_arduino_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
||||
#define U8G_COM_HAL_HW_SPI_FN u8g_com_arduino_hw_spi_fn
|
||||
//#define U8G_COM_HAL_HW_SPI_FN u8g_com_arduino_hw_spi_fn
|
||||
#define U8G_COM_HAL_HW_SPI_FN u8g_com_stm32duino_hw_spi_fn
|
||||
uint8_t u8g_com_arduino_st7920_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
||||
#define U8G_COM_ST7920_HAL_SW_SPI u8g_com_arduino_st7920_spi_fn
|
||||
//#define U8G_COM_ST7920_HAL_SW_SPI u8g_com_arduino_st7920_spi_fn
|
||||
#define U8G_COM_ST7920_HAL_SW_SPI u8g_com_std_sw_spi_fn
|
||||
#define U8G_COM_ST7920_HAL_HW_SPI u8g_com_stm32duino_hw_spi_fn
|
||||
#elif defined(ARDUINO_ARCH_STM32)
|
||||
uint8_t u8g_com_arduino_std_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
||||
#define U8G_COM_HAL_SW_SPI_FN u8g_com_arduino_std_sw_spi_fn
|
||||
|
@ -42,11 +42,17 @@
|
||||
// Optimize this code with -O3
|
||||
#pragma GCC optimize (3)
|
||||
|
||||
#define ST7920_SND_BIT \
|
||||
WRITE(ST7920_CLK_PIN, LOW); ST7920_DELAY_1; \
|
||||
WRITE(ST7920_DAT_PIN, val & 0x80); ST7920_DELAY_2; \
|
||||
WRITE(ST7920_CLK_PIN, HIGH); ST7920_DELAY_3; \
|
||||
val <<= 1
|
||||
|
||||
#ifdef ARDUINO_ARCH_STM32F1
|
||||
#define ST7920_DAT(V) !!((V) & 0x80)
|
||||
#else
|
||||
#define ST7920_DAT(V) ((V) & 0x80)
|
||||
#endif
|
||||
#define ST7920_SND_BIT do{ \
|
||||
WRITE(ST7920_CLK_PIN, LOW); ST7920_DELAY_1; \
|
||||
WRITE(ST7920_DAT_PIN, ST7920_DAT(val)); ST7920_DELAY_2; \
|
||||
WRITE(ST7920_CLK_PIN, HIGH); ST7920_DELAY_3; \
|
||||
val <<= 1; }while(0)
|
||||
|
||||
// Optimize this code with -O3
|
||||
#pragma GCC optimize (3)
|
||||
|
@ -28,6 +28,8 @@
|
||||
#define BOARD_NAME "FYSETC AIO II"
|
||||
#define BOARD_WEBSITE_URL "https://fysetc.com"
|
||||
|
||||
#define DISABLE_JTAG
|
||||
|
||||
#define pins_v2_20190128 // geo-f:add for new pins define
|
||||
|
||||
// Ignore temp readings during development.
|
||||
@ -77,11 +79,11 @@
|
||||
//
|
||||
|
||||
// X:PA2 Y:PA3 Z:PB12 E:PB13 // changed for test
|
||||
#define MOTOR_CURRENT_PWM_XY_PIN PA3
|
||||
#define MOTOR_CURRENT_PWM_Z_PIN PA2 // PB12
|
||||
//#define MOTOR_CURRENT_PWM_XY_PIN PA3
|
||||
//#define MOTOR_CURRENT_PWM_Z_PIN PA2 // PB12
|
||||
//#define MOTOR_CURRENT_PWM_XY_PIN PB6
|
||||
//#define MOTOR_CURRENT_PWM_Z_PIN PB7 // PB12
|
||||
#define MOTOR_CURRENT_PWM_E_PIN -1 // PB13
|
||||
//#define MOTOR_CURRENT_PWM_E_PIN -1 // PB13
|
||||
// Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
|
||||
#ifndef MOTOR_CURRENT_PWM_RANGE
|
||||
#define MOTOR_CURRENT_PWM_RANGE 1500 // geo-f:old 2000
|
||||
|
@ -33,6 +33,8 @@
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
#define DISABLE_JTAG
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
@ -69,7 +71,7 @@
|
||||
#define E0_DIR_PIN PC14
|
||||
#define E0_ENABLE_PIN PC13
|
||||
|
||||
#define X_HARDWARE_SERIAL MSerial2 // Port correct?
|
||||
#define X_HARDWARE_SERIAL MSerial2
|
||||
#define Y_HARDWARE_SERIAL MSerial2
|
||||
#define Z_HARDWARE_SERIAL MSerial2
|
||||
#define E0_HARDWARE_SERIAL MSerial2
|
||||
|
Reference in New Issue
Block a user