資源簡介
對智能車新手特別管用!本人就是通過捷徑才會很快上手智能車,對于某些制作智能車緊迫的同學來說這是個不錯的選擇。
代碼片段和文件信息
#include?“common.h“
#include?“include.h“
#include?“calculation.h“
/***********************************************************?
函數名稱:LCD_KEY_init
函數功能:
入口參數:
出口參數:無?
備?注:?
***********************************************************/
void?LCD_KEY_init?(void){
??
??
??????pit_init_ms(PIT2?5);??????????????????????????????????//初始化PIT2,定時時間為:?5ms?按鍵用定時器
?????/************************
?????液晶屏初始化
????************************/
????gpio_init?(PORTC??14?GPO?HIGH)?;
????gpio_init?(PORTC??15?GPO?HIGH)?;
????gpio_init?(PORTC??6??GPO?HIGH)?;
????gpio_init?(PORTC??7??GPO?HIGH)?;
????gpio_init?(PORTB??21?GPO?HIGH)?;
????gpio_init?(PORTB??22?GPO?HIGH)?;
????LCD_init()?;??
?????/************************
?????按鍵初始化
????************************/
????gpio_Interrupt_init(PORTD??8?GPI?EITHER)?;
????gpio_Interrupt_init(PORTD??9?GPI?EITHER)?;
????gpio_Interrupt_init(PORTD??10?GPI?EITHER)?;
????gpio_Interrupt_init(PORTD??11?GPI?EITHER)?;
}
/***********************************************************?
函數名稱:CCD_init
函數功能:
入口參數:
出口參數:無?
備?注:?
***********************************************************/
extern?u8??BUFF[500]?;
void?CCD_INC?(void){
?????gpio_Interrupt_init(PORTD14?GPI_UPFALLING)?;??????????//場中斷
?????gpio_Interrupt_init(PORTD13?GPI_DOWN?RING)?;??????????//行中斷?
?????//采用通道4傳輸,主計數器計數到100,每次DMA傳輸一個字節,采用下降沿觸發,源地址是E0口,目的地址是BUFF這個數組
?????//觸發端口是PTD12
?????DMA_PORTx2BUFF_Init?(DMA_CH4?(void?*)&PTE_BYTE0_IN?BUFF?PTD12?DMA_BYTE1?DATACOUNT?DMA_rising_down);?
?????}
/***********************************************************?
函數名稱:LCD_KEY
函數功能:液晶顯示和按鍵程序
入口參數:c :??顯示的字符
出口參數:無?
備?注:?
***********************************************************/
extern?u8?key8flg?;
extern?u8?key9flg?;
extern?u8?key10flg?;
extern?u8?key11flg?;
extern?u8?keyflg??;
extern?u8?TIME0flag_80ms??;
extern?u16?ASPeed0?ASPeed1?ASPeed2;
extern?u16?ASPeed3?ASPeed4?ASPeed5?;
void?KYELCD(void){
??
static?u8?t8rmp0?=?0t8rmp1?=?0;
static?u8?AupDown??;
u8?AspeedS0?AspeedS1?AspeedS2?AspeedS3;
???if(key8flg?>=?1)??{
?????????
??????????keyflg?=?0?;
??????????key8flg?--?;
??????????if(AupDown?>?0)
??????????{
????????????AupDown?--?;
??????????}
????????}
??????
?????????if(key11flg?>=?1)??{
??????????if(AupDown?5)
??????????{
????????????AupDown?++?;
??????????}
??????????keyflg?=?0?;
??????????key11flg?--?;
????????}
??????/*********************
??????160ms程序執行代碼段
??????*********************/
??????if(TIME0flag_80ms?==?1)
??????{
????????TIME0flag_80ms?=?0?;?
????????
?????
???????????if(AupDown?==?0)
???????????{
????????????????if(key9flg?>=?1)??{
?????????????????keyflg?=?0?;
?????????????????ASPeed0?+=?key9flg?;
?????????????????key9flg?=?0?;????????????
??????????????}
??????????????if(key10flg?>=?1){
??????????????????keyflg?=?0?;?
??????????????????if((ASPeed0-key10flg)?0)
??????????????????{
????????????????????ASPeed0?=?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-08-21?21:55??攝像頭采集圖像\
?????目錄???????????0??2014-08-21?21:55??攝像頭采集圖像\landzok60攝像頭測試程序\
?????目錄???????????0??2014-08-21?21:55??攝像頭采集圖像\landzok60攝像頭測試程序\build\
?????目錄???????????0??2014-08-21?21:55??攝像頭采集圖像\landzok60攝像頭測試程序\build\Input_demo\
?????文件???????48787??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\Input_demo\fire_Input_demo.dep
?????文件???????52298??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\Input_demo\fire_Input_demo.ewd
?????文件???????55200??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\Input_demo\fire_Input_demo.ewp
?????目錄???????????0??2014-08-21?21:55??攝像頭采集圖像\landzok60攝像頭測試程序\build\PWM_Input_PIT_demo\
?????文件???????89123??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\PWM_Input_PIT_demo\fire_PWM_Input_PIT_demo.dep
?????文件???????52298??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\PWM_Input_PIT_demo\fire_PWM_Input_PIT_demo.ewd
?????文件???????55332??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\PWM_Input_PIT_demo\fire_PWM_Input_PIT_demo.ewp
?????目錄???????????0??2014-08-21?21:55??攝像頭采集圖像\landzok60攝像頭測試程序\build\adc_demo\
?????文件???????71310??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\adc_demo\fire_adc_demo.dep
?????文件???????52298??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\adc_demo\fire_adc_demo.ewd
?????文件???????55104??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\adc_demo\fire_adc_demo.ewp
?????目錄???????????0??2014-08-21?21:55??攝像頭采集圖像\landzok60攝像頭測試程序\build\cmsis_demo\
?????文件???????51930??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\cmsis_demo\fire_cmsis_demo.dep
?????文件???????52298??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\cmsis_demo\fire_cmsis_demo.ewd
?????文件???????55147??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\cmsis_demo\fire_cmsis_demo.ewp
?????目錄???????????0??2014-08-21?21:55??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\
?????文件????????2030??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\128KB_Pflash.icf
?????文件????????2206??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\128KB_Pflash_128KB_Dflash.icf
?????文件????????2035??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\128KB_Ram.icf
?????文件????????2030??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\256KB_Pflash.icf
?????文件????????2214??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\256KB_Pflash_256KB_Dflash.icf
?????文件????????2024??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\32KB_Ram.icf
?????文件????????2041??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\512KB_Pflash.icf
?????文件????????2217??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\64KB_Pflash_64KB_Dflash.icf
?????文件????????2024??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\64KB_Ram.icf
?????文件????????3463??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\fire_RAM_K60N512.icf
?????文件????????3441??2013-03-07?21:13??攝像頭采集圖像\landzok60攝像頭測試程序\build\config?files\fire_ROM_K60N512.icf
............此處省略604個文件信息
- 上一篇:lingo9.0完美破解變量無限制運行極穩定
- 下一篇:微擎1.7.9.zip
評論
共有 條評論