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

資源簡(jiǎn)介

所設(shè)計(jì)的基于MSP430單片機(jī)的液晶顯示智能數(shù)字氣壓計(jì)及高度測(cè)量計(jì),其核心功能部件為博世公司的BMP180芯片,該芯片具有測(cè)量壓力的功能,其基本原理是利用所攜帶的壓敏元件將待測(cè)氣壓直接變換為電壓信號(hào),通過(guò)I2C接口,傳輸至MSP430單片機(jī),并將相應(yīng)程序事先燒錄進(jìn)單片機(jī),利用主控芯片進(jìn)行后續(xù)處理實(shí)時(shí)顯示數(shù)據(jù)。

資源截圖

代碼片段和文件信息

#include?“FG12864A.h“
#include?“msp430.h“
#include?“stdint.h“

/********printf?相關(guān)*******/
#include?“stdarg.h“
#define?CMD_BUFFER_LEN?100
/*************************/

/********LCD?引腳定義************/
#define?P_LCD_DIR???P3DIR
#define?P_LCD_OUT???P3OUT

#define?P6_LCD_DIR???P6DIR
#define?P6_LCD_OUT???P6OUT
//因?yàn)榇a的寫(xiě)法風(fēng)格,所以這5個(gè)引腳最好在同一個(gè)Pn下,便于修改
#define?LCDCS1 BIT5
#define?LCDD_A BIT5//(P6.5)
#define?LCDRES ????BIT6//(P6.6)
#define?LCDDATA BIT2
#define?LCDCLK BIT6

#define?OUTCMD ????0
#define OUTDATA ????1
/*******************************/

/*************函數(shù)聲明****************/
void?LCDprintf?(unsigned?char?poX?unsigned?char?poYchar?*fmt?...);
void?delay(int?a);
void?LcdWrite(unsigned?char?cmddatunsigned?char?cmd_or_dat);
void?DispChar(unsigned?char?pageunsigned?char?columnchar?data);
void?DispSize6x8(unsigned?char?pageunsigned?char?columnunsigned?const?char?*chpoint);
void?ClrPage(unsigned?char?page);
void?ClrLcd(void);
void?DispString_6x8(unsigned?char?pageunsigned?char?columnconst?char?*string);
void?ClrLcd8x(unsigned?char?columnunsigned?char?sizeunsigned?char?page);
void?LcdIoInit(void);
void?LcdRegInit(void);
void?LcdInit(void);
/*************************************/

void?LCDprintf?(unsigned?char?poX?unsigned?char?poYchar?*fmt?...)
{
static?char?buffer[CMD_BUFFER_LEN+1];
????va_list?arg_ptr;
????va_start(arg_ptr?fmt);
????vsnprintf(buffer?CMD_BUFFER_LEN+1?fmt?arg_ptr);
????DispString_6x8(poXpoY(?char?*)buffer);
????va_end(arg_ptr);
}

static?const?uint8_t?FONT6x8[]?=?{
????/*?6x8?font?each?line?is?a?character?each?byte?is?a?one?pixel?wide?column
?????*?of?that?character.?MSB?is?the?top?pixel?of?the?column?LSB?is?the?bottom
?????*?pixel?of?the?column.?0?=?pixel?off.?1?=?pixel?on.?*/

????0x000x000x000x000x000x000x00?//?space
????0x00?0x00?0xFA?0x00?0x00?0x00?//?!
????0x00?0xE0?0x00?0xE0?0x00?0x00?//?“
????0x28?0xFE?0x28?0xFE?0x28?0x00?//?#
????0x24?0x54?0xFE?0x54?0x48?0x00?//?$
????0xC4?0xC8?0x10?0x26?0x46?0x00?//?%
????0x6C?0x92?0x6A?0x04?0x0A?0x00?//?&
????0x00?0x10?0xE0?0xC0?0x00?0x00?//?‘
????0x00?0x38?0x44?0x82?0x00?0x00?//?(
????0x00?0x82?0x44?0x38?0x00?0x00?//?)
????0x54?0x38?0xFE?0x38?0x54?0x00?//?*
????0x10?0x10?0x7C?0x10?0x10?0x00?//?+
????0x00?0x02?0x1C?0x18?0x00?0x00?//?
????0x10?0x10?0x10?0x10?0x10?0x00?//?-
????0x00?0x00?0x06?0x06?0x00?0x00?//?.
????0x04?0x08?0x10?0x20?0x40?0x00?//?/
????//96?Bytes
????0x7C?0x8A?0x92?0xA2?0x7C?0x00?//?0
????0x00?0x42?0xFE?0x02?0x00?0x00?//?1
????0x42?0x86?0x8A?0x92?0x62?0x00?//?2
????0x84?0x82?0x92?0xB2?0xCC?0x00?//?3
????0x18?0x28?0x48?0xFE?0x08?0x00?//?4
????0xE4?0xA2?0xA2?0xA2?0x9C?0x00?//?5
????0x3C?0x52?0x92?0x92?0x0C?0x00?//?6
????0x82?0x84?0x88?0x90?0xE0?0x00?//?7
????0x6C?0x92?0x92?0x92?0x6C?0x00?//?8
????0x60?0x92?0x92?0x94?0x78?0x00

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-05-15?14:36??程序\
?????文件?????????293??2016-05-26?10:07??程序\delay.h
?????文件???????12087??2016-05-26?10:07??程序\FG12864A.c
?????文件?????????712??2016-05-26?10:06??程序\FG12864A.h
?????文件?????????396??2016-05-26?10:07??程序\global.h
?????文件???????11351??2016-05-26?10:06??程序\main.c
?????文件????????3948??2016-05-26?10:06??程序\UCS.C
?????文件?????????157??2016-05-26?10:06??程序\UCS.H

評(píng)論

共有 條評(píng)論