91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.38MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-08-20
  • 語言: 其他
  • 標簽:

資源簡介

stm32簡易計算器,帶觸屏2.8寸屏幕

資源截圖

代碼片段和文件信息

/******************************************************************************
*?文件名稱:ili932x.c
*?摘?要:支持ILI9320和ILI9325驅動IC控制的QVGA顯示屏,使用16位并行傳輸
??到頭文件中配置?屏幕使用方向和驅動IC類型
??注意:16位數據線色彩分布>>??BGR(565)

*?當前版本:V1.3
*?修改說明:版本修訂說明:
??1.修改翻轉模式下的ASCII字符寫Bug
??2.增加可以在翻轉模式下的自動行寫
??3.優化刷圖片?使用流水線方法提效率
*重要說明!
在.h文件中,#define?Immediately時是立即顯示當前畫面
而如果#define?Delay,則只有在執行了LCD_WR_REG(0x00070x0173);
之后才會顯示,執行一次LCD_WR_REG(0x00070x0173)后,所有寫入數
據都立即顯示。
#define?Delay一般用在開機畫面的顯示,防止顯示出全屏圖像的刷新
過程
******************************************************************************/
#include?“stm32f10x_lib.h“
#include?“ILI9320.h“
#include?“math.h“
#include?“string.h“
#include?“hanzi16.h“
#include?“hanzi48.h“
#include?“asc_zimo.h“
#include?“number.h“

u16?q;
typedef?union
{
??u16?U16;
??u8?U8[2];
}ColorTypeDef;

/****************************************************************
函數名:Lcd配置函數
功能:配置所有和Lcd相關的GPIO和時鐘
引腳分配為:
PB8--PB15——16Bit數據總線低8位
PC0--PC7?——16Bit數據總線高8位
PC8?——Lcd_cs
PC9?——Lcd_rs*
PC10——Lcd_wr
PC11——Lcd_rd*
PC12——Lcd_rst
PC13——Lcd_blaklight?背光靠場效應管驅動背光模塊
*****************************************************************/
void?Lcd_Configuration(void)
{?
GPIO_InitTypeDef?GPIO_InitStructure;
/*開啟相應時鐘?*/
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOE|RCC_APB2Periph_GPIOD|RCC_APB2Periph_GPIOF?ENABLE);??
/*所有Lcd引腳配置為推挽輸出*/
/*16位數據低8位*/
GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_8|GPIO_Pin_9|GPIO_Pin_10|GPIO_Pin_11|GPIO_Pin_12|GPIO_Pin_13|GPIO_Pin_14|GPIO_Pin_15;
GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;
GPIO_Init(GPIOD?&GPIO_InitStructure);
/*16位數據高8位*/
????GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_8|GPIO_Pin_9|GPIO_Pin_10|GPIO_Pin_11|GPIO_Pin_12|GPIO_Pin_13|GPIO_Pin_14|GPIO_Pin_15;
GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;
GPIO_Init(GPIOE?&GPIO_InitStructure);
/*控制腳*/
GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_11|GPIO_Pin_12|GPIO_Pin_13|GPIO_Pin_14|GPIO_Pin_15;
GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;
GPIO_Init(GPIOF?&GPIO_InitStructure);
}
/******************************************
函數名:Lcd寫數據函數
功能:向Lcd指定位置寫入相應數據
入口參數:data?寫入的數據
返回值:無
******************************************/
void?DataToWrite(u16?data)?
{
u16?temp;
temp?=?GPIO_ReadOutputData(GPIOD);
GPIO_Write(GPIOD?(data<<8)|(temp&0x00ff));
temp?=?GPIO_ReadOutputData(GPIOE);
GPIO_Write(GPIOE?data|(temp&0x00ff));
}



/**********************************************
函數名:Lcd初始化函數
功能:初始化Lcd
入口參數:無
返回值:無
***********************************************/
void?Lcd_Initialize(void)
{
?? u16?i;
DataToWrite(0xffff);//數據線全高
Set_Rst;
Set_nWr;
Set_Cs;
Set_Rs;
Set_nRd;
Set_Rst;
Delay_nms(1);
Clr_Rst;
Delay_nms(1);
Set_Rst;
Delay_nms(1);?
LCD_WR_REG(0x000x0000);
LCD_WR_REG(0x010x0100); //Driver?Output?Contral.
LCD_WR_REG(0x0

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????48110??2010-12-16?21:20??簡易計算器stm32\ILI9320.c

?????文件???????4417??2010-12-16?21:20??簡易計算器stm32\ILI9320.h

?????文件??????31099??2010-12-16?21:19??簡易計算器stm32\library\inc\asc_zimo.h

?????文件???????2225??2010-12-16?21:19??簡易計算器stm32\library\inc\cortexm3_macro.h

?????文件?????907121??2010-12-16?21:19??簡易計算器stm32\library\inc\hanzi16.h

?????文件???????4588??2010-12-16?21:19??簡易計算器stm32\library\inc\hanzi48.h

?????文件??????26113??2010-12-16?21:19??簡易計算器stm32\library\inc\number.h

?????文件?????313759??2010-12-16?21:19??簡易計算器stm32\library\inc\picture.h

?????文件??????18854??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_adc.h

?????文件???????6911??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_bkp.h

?????文件??????12279??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_can.h

?????文件???????1881??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_crc.h

?????文件???????9598??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_dac.h

?????文件???????2859??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_dbgmcu.h

?????文件??????17974??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_dma.h

?????文件???????5776??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_exti.h

?????文件??????13996??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_flash.h

?????文件??????18487??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_fsmc.h

?????文件??????14820??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_gpio.h

?????文件??????15604??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_i2c.h

?????文件???????3414??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_iwdg.h

?????文件???????3200??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_lib.h

?????文件?????500262??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_map.h

?????文件??????19198??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_nvic.h

?????文件???????3865??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_pwr.h

?????文件??????14783??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_rcc.h

?????文件???????3619??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_rtc.h

?????文件??????18326??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_sdio.h

?????文件??????13470??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_spi.h

?????文件???????3212??2010-12-16?21:19??簡易計算器stm32\library\inc\stm32f10x_systick.h

............此處省略134個文件信息

評論

共有 條評論

相關資源