void lcd_GPIO_init(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
__HAL_RCC_GPIOB_CLK_ENABLE(); // 使能GPIOB时钟
__HAL_RCC_AFIO_CLK_ENABLE(); // 使能AFIO时钟
__HAL_AFIO_REMAP_SWJ_NOJTAG(); // 关闭 JTAG 功能
/* GPIOB3,B4初始化设置 */
GPIO_InitStructure.Pin = GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5;
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP; //推挽输出
GPIO_InitStructure.Pull = GPIO_NOPULL; //无上下拉
GPIO_InitStructure.Speed = GPIO_SPEED_FREQ_MEDIUM; //72MHz
HAL_GPIO_Init(GPIOB, &GPIO_InitStructure); //GPIOB初始化
SID(1);
SCLK(1);
RST(1);
}