{"id":12863,"date":"2019-06-17T00:00:00","date_gmt":"2019-06-17T00:00:00","guid":{"rendered":""},"modified":"2019-06-17T00:00:00","modified_gmt":"2019-06-17T00:00:00","slug":"44149-02156","status":"publish","type":"post","link":"http:\/\/www.cooxp.com\/talk\/44149-02156.htm","title":{"rendered":"\u5355\u7247\u673a\u63a7\u5236\u4ea4\u901a\u706f\u7a0b\u5e8f"},"content":{"rendered":"

\u5355\u7247\u673a\u63a7\u5236\u4ea4\u901a\u706fc51\u7a0b\u5e8f
620)this.width=620;” onclick=”window.open(this.src)”>
620)this.width=620;” onclick=”window.open(this.src)”>
\/*
\u7a0b\u5e8f\u6548\u679c\uff1a\u5355\u7247\u673a\u6a21\u62df\u63a7\u5236\u4ea4\u901a\u706f\u7a0b\u5e8f\uff0c\u89c4\u5219\u5982\u4e0b\uff1a\u5f53\u5357\u5317\u901a\u8f66\u65f6\uff0c\u6b64\u65f6\u5357\u5317\u7684\u7eff\u706f\u4eae\uff0c\u4e1c\u897f\u7684\u7ea2\u706f\u4eae\uff0c\u4e4b\u540e\u5357\u5317\u7684\u7eff\u706f\u95ea\u70c13\u6b21\uff0c\u8fc7\u540e\u9ec4\u706f\u4eae\uff0c\u5ef6\u65f6\u7247\u523b\uff0c\u8f6c\u4e1c\u897f\u7eff\u706f\u4eae\u540c\u65f6\u5357\u5317\u7ea2\u706f\u4eae\uff0c\u4e4b\u540e\u4e1c\u897f\u7684\u7eff\u706f\u95ea\u70c13\u6b21\uff0c\u8fc7\u540e\u9ec4\u706f\u4eae\uff0c\u5ef6\u65f6\u7247\u523b\uff1b\u6570\u7801\u7ba1\u663e\u793a\u7684\u503c\u90fd\u540c\u6b65\uff0c\u7ed3\u675f\u3002
*\/
#includereg52.h> \/\/\u5934\u6587\u4ef6
#define uchar unsigned char\/\/\u5b8f\u5b9a\u4e49
#define uint unsigned int
uchar code table[]={0x00,0x01,0x02,0x03, \/\/\u6570\u7801\u7ba1\u663e\u793a\u7684\u503c
0x04,0x05,0x06,0x07,0x08,0x09,0x10,0x11,
0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,
0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
0x28,0x29,0x30,0x31,0x32,0x33,0x34,0x35,
0x36,0x37,0x38,0x39,0x40,0x41,0x42,0x43,
0x44,0x45};
void delay(uint x)\/\/\u5ef6\u65f6\u5b50\u51fd\u6570
{
\u3000\u3000uint i,j;
\u3000\u3000for(i=x;i>0;i–)
\u3000\u3000for(j=500;j>0;j–);
}
void main() \/\/\u4e3b\u51fd\u6570
{
\u3000\u3000uchar i; \/\/\u5b9a\u4e49\u5c40\u90e8\u53d8\u91cf
\u3000\u3000P1=table[0]; \/\/\u6570\u7801\u7ba1\u663e\u793a0
\u3000\u3000delay(400); \/\/\u5ef6\u65f6\u4e00\u4f1a\u513f\uff0c\u5728\u6b64\u4e4b\u524d\u6240\u6709\u6570\u7801\u7ba1\u5168\u4e3a0\uff0c
\u3000\u3000while(1) \/\/\u6240\u6709\u7684\u4ea4\u901a\u706f\u90fd\u4eae
\u3000\u3000{
\u3000\u3000\u3000\u3000for(i=0;i45;i++) \/\/\u5357\u5317\u901a\u8f66\u8f83\u591a\uff0c\u6545\u5ef6\u65f6\u8f83\u591a
\u3000\u3000\u3000\u3000{
\u3000\u3000\u3000\u3000\u3000\u3000P2=0x0a; \/\/\u5357\u5317\u7eff\u706f\u4eae\uff0c\u4e1c\u897f\u7ea2\u706f\u4eae
\u3000\u3000\u3000\u3000\u3000\u3000 P1=table;
\u3000\u3000\u3000\u3000\u3000\u3000delay(200);
\u3000\u3000\u3000\u3000}
\u3000\u3000\u3000\u3000for(i=0;i3;i++) \/\/\u5357\u5317\u7eff\u706f\u95ea\u70c13\u6b21\uff0c\u540c\u65f6\u4e1c\u897f\u7ea2\u706f\u4eae
\u3000\u3000\u3000\u3000 {
\u3000\u3000\u3000\u3000\u3000\u3000 P2=0x0a;
\u3000\u3000\u3000\u3000\u3000\u3000delay(200);
\u3000\u3000\u3000\u3000\u3000\u3000P2=0x02;
\u3000\u3000\u3000\u3000\u3000\u3000delay(200);
\u3000\u3000\u3000\u3000}
\u3000\u3000\u3000\u3000P2=0x22; \/\/\u5357\u5317\u9ec4\u706f\u4eae\uff0c\u540c\u65f6\u4e1c\u897f\u7ea2\u706f\u4eae
\u3000\u3000\u3000\u3000delay(600); \/\/\u5ef6\u65f6\u7247\u523b
\u3000\u3000\u3000\u3000for(i=0;i35;i++) \/\/\u4e1c\u897f\u5f00\u59cb\u901a\u8f66\uff0c\u7531\u4e8e\u8f66\u8f86\u8f83\u5c11\uff0c\u6545\u5ef6\u65f6\u8f83\u5c11
\u3000\u3000\u3000\u3000{
\u3000\u3000\u3000\u3000\u3000\u3000P2=0x11; \/\/\u5357\u5317\u7684\u7ea2\u706f\u4eae \uff0c\u4e1c\u897f\u7684\u7eff\u706f\u4eae
\u3000\u3000\u3000\u3000\u3000\u3000P1=table;
\u3000\u3000\u3000\u3000\u3000\u3000delay(200);
\u3000\u3000\u3000\u3000}
\u3000\u3000\u3000\u3000for(i=0;i3;i++) \/\/\u4e1c\u897f\u7684\u7eff\u706f\u95ea\u70c13\u6b21
\u3000\u3000\u3000\u3000{
\u3000\u3000\u3000\u3000\u3000\u3000P2=0x11;
\u3000\u3000\u3000\u3000\u3000\u3000delay(200);
\u3000\u3000\u3000\u3000\u3000\u3000P2=0x10;
\u3000\u3000\u3000\u3000\u3000\u3000delay(200);
\u3000\u3000\u3000\u3000}
\u3000\u3000\u3000\u3000P2=0x14; \/\/\u4e1c\u897f\u7684\u9ec4\u706f\u4eae
\u3000\u3000\u3000\u3000delay(600); \/\/\u5ef6\u65f6\u7247\u523b
\u3000\u3000}<\/i><\/i><\/p>\n

\u3002 \uff08\u672c\u6587\u6765\u6e90\u7f51\u7edc\u6574\u7406\uff0c\u76ee\u7684\u662f\u4f20\u64ad\u6709\u7528\u7684\u4fe1\u606f\u548c\u77e5\u8bc6\uff0c\u5982\u6709\u4fb5\u6743\uff0c\u53ef\u8054\u7cfb\u7ba1\u7406\u5458\u5220\u9664\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5355\u7247\u673a\u63a7\u5236\u4ea4\u901a\u706fc51\u7a0b\u5e8f 620)this.width=620;” onclick=&#8221 […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.cooxp.com\/wp-json\/wp\/v2\/posts\/12863"}],"collection":[{"href":"http:\/\/www.cooxp.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cooxp.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cooxp.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cooxp.com\/wp-json\/wp\/v2\/comments?post=12863"}],"version-history":[{"count":0,"href":"http:\/\/www.cooxp.com\/wp-json\/wp\/v2\/posts\/12863\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.cooxp.com\/wp-json\/wp\/v2\/media?parent=12863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cooxp.com\/wp-json\/wp\/v2\/categories?post=12863"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cooxp.com\/wp-json\/wp\/v2\/tags?post=12863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}