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

正文內(nèi)容

基于51單片機(jī)的雙色32x16點(diǎn)陣滾動(dòng)顯示-wenkub.com

2024-11-06 16:10 本頁(yè)面
   

【正文】 if(tong26) tong=0。if(zimuo1568) {zimuo=0。//鎖存為高, 595鎖存信號(hào) LSTCP=1。liex++)//列選 { if(k%2==0) lies74HC595(liexuan[lies+liex*8])。shuj++)//8次送數(shù)據(jù) { send74HC595(tablea[shuj*16+lies*2+yid*2+zimuo])。sudu++)//顯示時(shí)間 { for(lies=0。//換色 } //*****************************************************/// /////////////////滾動(dòng)顯示 ///////////////////////////////// ////**************************************************/// for(yid=0。 } } zimuo=zimuo+64。STCP=0。liex2。shuj4。sudu50。 zimuo=0。if(d==20) d=5。d=d2。LDS=CY。} } //******595送列掃 *****************// void lies74HC595(uchar datal) { uchar i。i++) {bydat=1。i++) 。 uchar code tablea[]。 uchar k=0,lies,shuj,sudu,liex,yid,tong,d=10。 sbit K1=P3^5。 sbit STCP=P3^2?;?51的雙色點(diǎn)陣滾動(dòng)顯示( 32x16) 郵箱: 百度空間: 310 山石 最進(jìn)閑來(lái)無(wú)事,正好手頭有幾塊雙色點(diǎn)陣,于是想做個(gè)滾動(dòng)顯示玩玩, 速度可加可減,顏色可改變 ..其中原理不必介紹,想必其他高人比我更清楚,不多說了,直接上圖,程序緊跟其后。 sbit LDS=P1^2。//按鍵定義 sbit K2=P3^6。 //列掃數(shù)據(jù),上選紅色,下選綠色 uchar code liexuan[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80}。 //***********************// //******yanshi**********// void delay(uint x) { uchar i。 } //*********595送數(shù)據(jù) *************// void send74HC595(uchar bydat) { uchar i。DS=CY。 for (i=0。LSHCP=1。if(d==5) d=20。} } //*****************主函數(shù) *************************// void main(void) { IE=0x81。 while(1) { ///////////////////靜態(tài)顯示 //////////////////////// /* for(k=0。sudu++)//顯示時(shí)間 { for(lies=0。shuj++)//8次送數(shù)據(jù) { send74HC595(table[lies*2+shuj*16+zimuo])。liex++)//列選 { if(tong%2==0) lies74HC595(liexuan[lies+liex*8])。//鎖存為高, 595鎖存信號(hào) LSTCP=1。if(zimuo1664) zimuo=0。yid16。lies8。 send74HC595(tablea[shuj*16+lies*2+yid*2+1+zimuo])。 else lies74HC595(liexuana[lies+liex*8])。LSTCP=0。k++。 ///////////////////////////////////////////////////////////// } } uchar code tablea[]= { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/* ,0*/ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/* ,1*/ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/* ,2*/ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/* ,3*/ //1 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x07,0xE0,0x07,0xE0, 0x07,0xE0,0x07,0xE0,0x07,0xE0,0xFF,0xFF,0xFF
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1