你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

stm32TFT彩屏显示问题

[复制链接]
李小胖 提问时间:2013-3-12 16:25 /
 主函数代码如下

int main(void)
{
  /*!< At this stage the microcontroller clock setting is already configured, 
       this is done through SystemInit() function which is called from startup
       file (startup_stm32f10x_xx.s) before to branch to application main.
       To reconfigure the default setting of SystemInit() function, refer to
       system_stm32f10x.c file
     */     
  u16 i, len, c2len;
  u16 x;
  u16 y;
  u8 c[] = "www.armjishu.com";
  u8 c2[] = "TFT LCD 320X240";
  u8 *str;
  u16 charColor;
  u16 bkColor;
  
  len = sizeof(c)-1;
  c2len = sizeof(c2)-1;
  
  
  /* USARTx configured as follow:
        - BaudRate = 115200 baud  
        - Word Length = 8 Bits
        - One Stop Bit
        - No parity
        - Hardware flow control disabled (RTS and CTS signals)
        - Receive and transmit enabled
  */
  USART_InitStructure.USART_BaudRate = 115200;
  USART_InitStructure.USART_WordLength = USART_WordLength_8b;
  USART_InitStructure.USART_StopBits = USART_StopBits_1;
  USART_InitStructure.USART_Parity = USART_Parity_No;
  USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
  USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
 
  STM_EVAL_COMInit(COM1, &USART_InitStructure);
 
  /* Output a message on Hyperterminal using printf function */
  printf("\n\rUSART Printf Example: retarget the C library printf function to the USART\n\r");
  printf("\r\n\n\n WWW.ARMJISHU.COM  %s configured....", EVAL_COM1_STR);
  printf("\n\r ############ WWW.ARMJISHU.COM! ############ ("__DATE__ " - " __TIME__ ")");
 
  printf("\r\n");
  printf("  _____ _______ __  __ ____ ___  ______ __  ___\r\n");
  printf(" / ____|__   __|  \\/  |___ \\__ \\|  ____/_ |/ _ \\\r\n");
  printf("| (___    | |  | \\  / | __) | ) | |__   | | | | |_  __\r\n");
  printf(" \\___ \\   | |  | |\\/| ||__ < / /|  __|  | | | | \\ \\/ /\r\n");

  printf(" ____) |  | |  | |  | |___) / /_| |     | | |_| |>    
收藏 评论6 发布时间:2013-3-12 16:25

举报

6个回答
李小胖 回答时间:2013-3-12 21:59:44

RE:stm32TFT彩屏显示问题

没人么??
sacq12 回答时间:2013-3-12 22:25:14

RE:stm32TFT彩屏显示问题

慢慢 缩小包围圈,看问题出在哪?
李小胖 回答时间:2013-3-12 23:27:52

回复:stm32TFT彩屏显示问题

回复第 3 楼 于2013-03-12 22:25:14发表:
慢慢 缩小包围圈,看问题出在哪?
就是那个printf函数那块,原来做串口的时候它工作就不正常。我做个彩屏,要USART串口功能干嘛,我把它注释掉,彩屏就不好使,不知道什么原因呢
 
sacq12 回答时间:2013-3-13 08:57:41

RE:stm32TFT彩屏显示问题

要找原因,可以慢慢地注释掉不需要的,步子不要太大;(要不,留着串口输出也没什么大碍,需要的时候还可以用用 )
李小胖 回答时间:2013-3-14 23:47:42

回复:stm32TFT彩屏显示问题

回复第 5 楼 于2013-03-13 08:57:41发表:
要找原因,可以慢慢地注释掉不需要的,步子不要太大;(要不,留着串口输出也没什么大碍,需要的时候还可以用用 )好吧 
守望者-425038 回答时间:2013-4-4 16:11:29

回复:stm32TFT彩屏显示问题

ili9320_Initializtion();函数中用了串口发送

所属标签

相似问题

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
微信公众号二维码 微信公众号
手机版二维码 手机版