資源簡介
STM32F746G eclipse環境 通過分析PWM 讀取傳感器TMP05的占空比 并計算溫度值 將溫度值實時顯示在LCD屏幕上
代碼片段和文件信息
/**
??******************************************************************************
??*?@file????LTDC/LTDC_Display_1layer/Src/main.c
??*?@author??MCD?Application?Team
??*?@version?V1.0.0
??*?@date????25-June-2015
??*?@brief???This?example?provides?a?description?of?how?to?configure?LTDC?peripheral
??*??????????to?display?BMP?image?on?LCD?using?only?one?layer.
??******************************************************************************
??*?@attention
??*
??*?©?COPYRIGHT(c)?2015?STMicroelectronics
??*
??*?Redistribution?and?use?in?source?and?binary?forms?with?or?without?modification
??*?are?permitted?provided?that?the?following?conditions?are?met:
??*???1.?Redistributions?of?source?code?must?retain?the?above?copyright?notice
??*??????this?list?of?conditions?and?the?following?disclaimer.
??*???2.?Redistributions?in?binary?form?must?reproduce?the?above?copyright?notice
??*??????this?list?of?conditions?and?the?following?disclaimer?in?the?documentation
??*??????and/or?other?materials?provided?with?the?distribution.
??*???3.?Neither?the?name?of?STMicroelectronics?nor?the?names?of?its?contributors
??*??????may?be?used?to?endorse?or?promote?products?derived?from?this?software
??*??????without?specific?prior?written?permission.
??*
??*?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS?“AS?IS“
??*?AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE
??*?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE?ARE
??*?DISCLAIMED.?IN?NO?EVENT?SHALL?THE?COPYRIGHT?HOLDER?OR?CONTRIBUTORS?BE?LIABLE
??*?FOR?ANY?DIRECT?INDIRECT?INCIDENTAL?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL
??*?DAMAGES?(INCLUDING?BUT?NOT?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR
??*?SERVICES;?LOSS?OF?USE?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)?HOWEVER
??*?CAUSED?AND?ON?ANY?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT?LIABILITY
??*?OR?TORT?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY?OUT?OF?THE?USE
??*?OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
??*
??******************************************************************************
??*/
/*?Includes?------------------------------------------------------------------*/
#include?“main.h“
#include?“stm32f7xx_hal.h“
#include?“math.h“
#define?max(ab)?(?((a)>(b))???(a):(b)?)
#define?min(ab)?(?((a)>(b))???(b):(a)?)
#define?MASK_R?0xFF
?#define?MASK_G?0xFF00
?#define?MASK_B?0xFF0000
/*?Timer?handler?declaration?*/
TIM_HandleTypeDef????TimHandle;
/*?Timer?Input?Capture?Configuration?Structure?declaration?*/
TIM_IC_InitTypeDef???????sConfig;
/*?Slave?configuration?structure?*/
TIM_SlaveConfigTypeDef???sSlaveConfig;
/*?Captured?Value?*/
__IO?uint32_t????????????uwIC1Value?=?0;
__IO?uint32_t????????????uwIC2Value?=?0;
/*?The?lowest?TEMP?Value?*/
uint32_t?Low_Temp?=?50000;
/*?The?highest?TEMP?Value?*/
uint32_t?High_Temp?=?0;
/*?High?TO?low?percentage?Value?*/
__IO?float??per_HL?=?0;
/*?TEMP?Value?*/
__IO?float??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????44070??2017-12-07?15:56??heh\.cproject
?????文件????????812??2017-08-07?15:26??heh\.project
?????文件???????2190??2018-03-13?16:51??heh\.settings\language.settings.xm
?????文件???????1281??2017-08-07?15:27??heh\.settings\org.eclipse.cdt.core.prefs
?????文件?????????59??2017-12-11?18:58??heh\.settings\org.eclipse.core.resources.prefs
?????文件????1193400??2017-08-07?15:26??heh\Debug\Camera_Test.elf
?????文件????1229340??2018-03-16?09:50??heh\Debug\heh.elf
?????文件?????111873??2018-03-16?09:50??heh\Debug\heh.hex
?????文件????1276278??2018-03-16?09:50??heh\Debug\heh.map
?????文件???????2987??2018-03-16?09:50??heh\Debug\makefile
?????文件????????239??2018-03-15?17:13??heh\Debug\ob
?????文件???????1031??2018-03-16?09:50??heh\Debug\sources.mk
?????文件???????5373??2018-03-16?09:50??heh\Debug\src\main.d
?????文件?????939964??2018-03-16?09:50??heh\Debug\src\main.o
?????文件???????5399??2018-03-15?17:13??heh\Debug\src\stm32f7xx_hal_msp.d
?????文件?????915528??2018-03-15?17:13??heh\Debug\src\stm32f7xx_hal_msp.o
?????文件???????5449??2018-03-15?17:14??heh\Debug\src\stm32f7xx_it.d
?????文件?????912512??2018-03-15?17:14??heh\Debug\src\stm32f7xx_it.o
?????文件???????1206??2018-03-16?09:50??heh\Debug\src\subdir.mk
?????文件????????311??2017-12-07?17:04??heh\Debug\system\include\Components\exc7200\exc7200.d
?????文件??????27404??2017-12-07?17:04??heh\Debug\system\include\Components\exc7200\exc7200.o
?????文件???????1210??2018-03-16?09:50??heh\Debug\system\include\Components\exc7200\subdir.mk
?????文件????????301??2017-12-07?17:04??heh\Debug\system\include\Components\ft5336\ft5336.d
?????文件??????43844??2017-12-07?17:04??heh\Debug\system\include\Components\ft5336\ft5336.o
?????文件???????1202??2018-03-16?09:50??heh\Debug\system\include\Components\ft5336\subdir.mk
?????文件????????607??2017-12-07?17:04??heh\Debug\system\include\Components\mfxstm32l152\mfxstm32l152.d
?????文件??????90116??2017-12-07?17:04??heh\Debug\system\include\Components\mfxstm32l152\mfxstm32l152.o
?????文件???????1250??2018-03-16?09:50??heh\Debug\system\include\Components\mfxstm32l152\subdir.mk
?????文件????????309??2017-12-07?17:04??heh\Debug\system\include\Components\ov9655\ov9655.d
?????文件??????35992??2017-12-07?17:04??heh\Debug\system\include\Components\ov9655\ov9655.o
............此處省略507個文件信息
- 上一篇:webmax2.0軟件
- 下一篇:02324離散數學真題+復習資料
評論
共有 條評論