标题: STM32 240x320液晶操作代码 [打印本页]

作者: 浪里淘金    时间: 2018-8-6 22:21
标题: STM32 240x320液晶操作代码
分享STM32液晶LCD中英文显示,其中涉及自动换行和主动换行的操作。

单片机源程序如下:
  1. #include "stm32f10x.h"
  2. #include "fonts.h"
  3. #include "bsp_usart.h"
  4. #include "bsp_lcd.h"
  5. #include "./flash/bsp_spi_flash.h"

  6. static void Delay ( __IO uint32_t nCount )
  7. {
  8.   for ( ; nCount != 0; nCount -- );
  9. }

  10. int main(void)
  11. {
  12.   BSP_USART_CONFIG();
  13.   ILI9341_Init();
  14.         Set_Font( Font8x16 );
  15.   LCD_DISPLAY_ALL(0,0,0,"吴俊英制作",BLACK);
  16.   LCD_DISPLAY_ALL(2,0,0,"秉火3.2_2.8寸LCD参数:",BLACK);
  17.         LCD_DISPLAY_ALL(3,0,0,"分辨率:240x320 px",BLACK);
  18.   LCD_DISPLAY_ALL(4,0,0,"ILI9341液晶驱动",BLACK);
  19.         LCD_DISPLAY_ALL(5,0,0,"XPT2046触摸屏驱动XPT2046触摸屏驱动",BLACK);
  20.         
  21.         while(1)
  22.         {
  23.         }
  24. }
复制代码

所有资料51hei提供下载:
LCD中英文显示.rar (321.97 KB, 下载次数: 21)



作者: coobakl    时间: 2019-9-26 14:39
楼主辛苦,学习学习




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1