freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

雞舍控制系統(tǒng)設(shè)計(jì)-資料下載頁

2025-07-07 16:20本頁面
  

【正文】 x高=8x16 */0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x04,0x00,0x60,0x18,0x06,0x01,0x00,0x00,0x00,}。unsigned char code maohao[]={/* 文字: : *//* 宋體12。 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=8x16 */0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00}。unsigned char code jiaohao[]={/* 文字: + 48*//* 宋體12。 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=8x16 */0x00,0x00,0x10,0x10,0x7C,0x10,0x10,0x00,0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x00,/* 文字: + 49*//* 宋體12。 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=8x16 */0x00,0x00,0x10,0x10,0x7C,0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/* 文字: 50*//* 宋體12。 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=8x16 */0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x00}。unsigned char code hanzi[]={ /* 文字: 雞 *//* Trebuchet MS12。 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 */0x04,0x14,0x64,0x84,0x74,0x0C,0x00,0xFC,0x0C,0x36,0x45,0x84,0x7C,0x00,0x00,0x00,0x10,0x08,0x06,0x01,0x03,0x0C,0x00,0x09,0x09,0x09,0x09,0x49,0x81,0x7F,0x00,0x00,/* 文字: 舍 *//* Trebuchet MS12。 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 */0x20,0xA0,0x90,0x90,0x98,0x94,0x92,0xF1,0x92,0x94,0x98,0x88,0x90,0xB0,0x10,0x00,0x00,0x00,0x00,0xFC,0x44,0x44,0x44,0x47,0x44,0x44,0x44,0xFC,0x00,0x00,0x00,0x00,/* 文字: 溫 *//* Trebuchet MS12。 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 */0x10,0x21,0x86,0x70,0x00,0x7E,0x4A,0x4A,0x4A,0x4A,0x4A,0x7E,0x00,0x00,0x00,0x00,0x02,0xFE,0x01,0x40,0x7F,0x41,0x41,0x7F,0x41,0x41,0x7F,0x41,0x41,0x7F,0x40,0x00,/* 文字: 度 *//* Trebuchet MS12。 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 */0x00,0x00,0xFC,0x04,0x24,0x24,0xFC,0xA5,0xA6,0xA4,0xFC,0x24,0x24,0x24,0x04,0x00,0x80,0x60,0x1F,0x80,0x80,0x42,0x46,0x2A,0x12,0x12,0x2A,0x26,0x42,0xC0,0x40,0x00,}。void delay_1ms(void)//1ms延時(shí)函數(shù){ unsigned int i。 for (i=0。i500。i++) 。}/*LCD_write_byte: 使用SPI接口寫數(shù)據(jù)到LCD輸入?yún)?shù):dt:寫入的數(shù)據(jù);mand :寫數(shù)據(jù)/命令選擇;編寫日期:20080918 */void LCD_write_byte(unsigned char dt, unsigned char mand){ unsigned char i。 sce=0。 dc=mand。 for(i=0。i8。i++) { if(dtamp。0x80) sdin=1。 else sdin=0。 dt=dt1。 sclk=0。 sclk=1。 } dc=1。 sce=1。 sdin=1。}/*LCD_set_XY: 設(shè)置LCD坐標(biāo)函數(shù)輸入?yún)?shù):X:0-83 Y:0-5編寫日期:20080918 */void LCD_set_XY(unsigned char X, unsigned char Y){ LCD_write_byte(0x40 | Y, 0)。// column LCD_write_byte(0x80 | X, 0)。// row} void LCD_clear(void){ unsigned char t。 unsigned char k。 LCD_set_XY(0,0)。 for(t=0。t6。t++) { for(k=0。k84。k++) { LCD_write_byte(0x00,1)。 } }}/*LCD_init: 3310LCD初始化編寫日期:20080918 */void LCD_init(void){ res=0。 delay_1ms()。 res=1。 sce=0。 delay_1ms()。 sce=1。 LCD_write_byte(0x21,0)。//初始化Lcd,功能設(shè)定使用擴(kuò)充指令 LCD_write_byte(0xc8,0)。//設(shè)定液晶偏置電壓 LCD_write_byte(0x06,0)。//溫度校正(很重要,否則會(huì)黑屏) LCD_write_byte(0x20,0)。//使用基本指令 LCD_clear()。 //清屏幕 LCD_write_byte(0x0C,0)。//設(shè)定顯示模式,正常顯示 delay_1ms()。 sce=0。}/*LCD_clear: LCD清屏函數(shù)編寫日期:20080918 *//*LCD_write_shu: 顯示8(寬)*16(高)點(diǎn)陣列數(shù)字字母符號(hào)等半角類輸入?yún)?shù):c:顯示的字符;編寫日期:20080918 */void LCD_write_shu(unsigned char row, unsigned char page,unsigned char c) //row:列 page:頁 dd:字符{ unsigned char i。 LCD_set_XY(row*8, page)。// 列,頁 for(i=0。 i8。i++) { LCD_write_byte(shuzi[c*16+i],1)。 } LCD_set_XY(row*8, page+1)。// 列,頁 for(i=8。 i16。i++) { LCD_write_byte(shuzi[c*16+i],1)。 } }/*LCD_write_hanzi: 顯示16(寬)*16(高)點(diǎn)陣列漢字等半角類輸入?yún)?shù):c:顯示的字符;編寫日期:20080918 */void LCD_write_hanzi(unsigned char row, unsigned char page,unsigned char c) //row:列 page:頁 dd:字符{ unsigned char i。 LCD_set_XY(row*8, page)。// 列,頁 for(i=0。 i16。i++) { LCD_write_byte(hanzi[c*32+i],1)。 } LCD_set_XY(row*8, page+1)。// 列,頁 for(i=16。 i32。i++) { LCD_write_byte(hanzi[c*32+i],1)。 } }28
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1