標(biāo)題: STM32驅(qū)動(dòng)1.54寸屏幕出現(xiàn)如下黑白豎條紋花屏現(xiàn)象,求各路大神幫忙一下 [打印本頁(yè)]

作者: 新富翁    時(shí)間: 2019-1-26 11:59
標(biāo)題: STM32驅(qū)動(dòng)1.54寸屏幕出現(xiàn)如下黑白豎條紋花屏現(xiàn)象,求各路大神幫忙一下
下載程序后,屏幕出現(xiàn)花屏,不知道哪里出了問題,求有經(jīng)驗(yàn)的朋友幫忙看看。。。

黑白豎條紋:


STM32單片機(jī)源程序如下:
  1. #include "sys.h"
  2. #include "delay.h"  
  3. #include "usart.h"  
  4. #include "led.h"
  5. #include  "st7789.h"
  6. #include   "gpio.h"


  7. int main(void)
  8. {   
  9.         u8 lcd_id[12];                                //存放LCD ID字符串
  10.     Stm32_Clock_Init(336,8,2,7);//設(shè)置時(shí)鐘,168Mhz
  11.     delay_init(168);                        //延時(shí)初始化
  12.         TIM3_PWM_Init(500,83);                        //光敏PWM                       
  13.         TIM3->CCR3 = 500;
  14.     Init_ST7789();        //初始化LED
  15.     sprintf((char*)lcd_id,"LCD ID:%02X",lcd.id);//將LCD ID打印到lcd_id數(shù)組。
  16.         Draw_Background(10,10,120,120,0xFFFF);
  17. }
復(fù)制代碼

所有資料51hei提供下載:
TFTLCD顯示.7z (130.21 KB, 下載次數(shù): 27)







歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1