{"id":2369,"date":"2019-04-23T09:45:05","date_gmt":"2019-04-23T09:45:05","guid":{"rendered":""},"modified":"2019-04-23T17:45:31","modified_gmt":"2019-04-23T09:45:31","slug":"51%e5%8d%95%e7%89%87%e6%9c%ba%e5%9c%a8led%e7%82%b9%e9%98%b5%e5%b1%8f%e4%b8%8a%e5%ae%9e%e7%8e%b0%e6%98%be%e7%a4%ba%e7%a4%bc%e8%8a%b1%e5%8a%9f%e8%83%bd%e7%9a%84%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2369","title":{"rendered":"51\u5355\u7247\u673a\u5728LED\u70b9\u9635\u5c4f\u4e0a\u5b9e\u73b0\u663e\u793a\u793c\u82b1\u529f\u80fd\u7684\u8bbe\u8ba1"},"content":{"rendered":"

\n\t\u5927\u5bb6\u53ef\u66fe\u8bb0\u5f97\u793c\u82b1\u7efd\u653e\u90a3\u4e00\u523b\u7684\u7cbe\u5f69\uff1f\u5c0f\u65f6\u5019\u6bcf\u5f53\u770b\u793c\u82b1\u7efd\u653e\u65f6\uff0c\u603b\u5e0c\u671b\u81ea\u5df1\u80fd\u5c06\u90a3\u6700\u7f8e\u7684\u90a3\u4e00\u970e\u90a3\u6c38\u8fdc\u7559\u4e0b\u3002\u7ec8\u4e8e\uff0c\u4eca\u5929\u6211\u7684\u68a6\u60f3\u5b9e\u73b0\u4e86\u3002\u901a\u8fc7\u81ea\u5df1\u7684\u677f\u677f\uff0c\u53ea\u8981\u968f\u624b\u7f16\u7a0b\u51e0\u4e0b\u5c31\u641e\u5b9a\u5566\uff01<\/p>\n

\n\t\u5728\u7ed9\u5927\u5bb6\u5c55\u793a\u6548\u679c\u56fe\u4e4b\u524d\uff0c\u6211\u4eec\u9996\u5148\u5f97\u5bf9LED\u70b9\u9635\u5c4f\u505a\u4e00\u756a\u4ecb\u7ecd\uff018*8 LED\u70b9\u9635\u7b49\u6548\u7535\u8def<\/u>\u5982\u56fe1\u6240\u793a\u3002\u901a\u8fc7\u5206\u6790\uff0c\u6211\u4eec\u4e0d\u96be\u5f97\u77e5\uff1a\u53ea\u8981\u5176\u5bf9\u5e94\u7684X\u3001Y\u8f74\u987a\u5411\u504f\u538b\uff0c\u5373\u53ef\u4f7fLED\u53d1\u4eae\u3002\u4f8b\u5982\uff1a\u82e5\u60f3\u4f7f\u5de6\u4e0a\u89d2LED\u70b9\u4eae\uff0c\u5219Y0=1\uff0cX0=0\uff0c\u5219\u4f1a\u5f62\u6210\u538b\u964d\u70b9\u4eae\u5de6\u4e0a\u89d2\u7684LED\u3002\u8fd9\u91cc\u7684\u6c34\u5e73\u65b9\u5411\u7531P2\u63a7\u5236\uff0c\u5782\u76f4\u65b9\u5411\u7531P0\u63a7\u5236\u3002<\/p>\n

\n\t <\/div>\n

\n\t\"51\u5355\u7247\u673a\u5728LED\u70b9\u9635\u5c4f\u4e0a\u5b9e\u73b0\u663e\u793a\u793c\u82b1\u529f\u80fd\u7684\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe1 8*8 LED\u70b9\u9635\u7b49\u6548\u7535\u8def<\/p>\n

\n\t\u672c\u6b21\u5728LED\u70b9\u9635\u5c4f\u4e0a\u5b9e\u73b0\u663e\u793a\u793c\u82b1\u7684\u529f\u80fd\u539f\u7406\u63a5\u53e3\u56fe\u5982\u56fe2\u6240\u793a\uff0c\u6548\u679c\u56fe\u5982\u56fe3\u6240\u793a\u3002\u901a\u8fc7\u8be5LED\u70b9\u9635\u8fd8\u53ef\u4ee5\u663e\u793a\u9759\u6001\u6216\u8005\u52a8\u6001\u7684\u56fe\u5f62<\/u>\u3001\u6587\u5b57\u7b49\u3002\u5927\u5bb6\u611f\u5174\u8da3\u7684\u53ef\u4ee5\u81ea\u5df1\u8bd5\u8bd5\u5566~~<\/p>\n

\n\t\"51\u5355\u7247\u673a\u5728LED\u70b9\u9635\u5c4f\u4e0a\u5b9e\u73b0\u663e\u793a\u793c\u82b1\u529f\u80fd\u7684\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe2 \u5728LED\u70b9\u9635\u5c4f\u4e0a\u5b9e\u73b0\u663e\u793a\u793c\u82b1\u7684\u529f\u80fd\u539f\u7406\u63a5\u53e3\u56fe<\/p>\n

\n\t\"51\u5355\u7247\u673a\u5728LED\u70b9\u9635\u5c4f\u4e0a\u5b9e\u73b0\u663e\u793a\u793c\u82b1\u529f\u80fd\u7684\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe3 \u793c\u82b1\u663e\u793a\u6548\u679c\u7ec4\u56fe<\/p>\n

\n\t\"51\u5355\u7247\u673a\u5728LED\u70b9\u9635\u5c4f\u4e0a\u5b9e\u73b0\u663e\u793a\u793c\u82b1\u529f\u80fd\u7684\u8bbe\u8ba1\"<\/p>\n

\n\t\u56fe \u793c\u82b1\u52a8\u6001\u663e\u793a\u56fe<\/p>\n

\n\tLED\u70b9\u9635\u5c4f\u4e0a\u663e\u793a\u793c\u82b1C\u6e90\u4ee3\u7801<\/p>\n

\n\t#include<\/p>\n

\n\t#include<\/p>\n

\n\t#define uint unsigned int<\/p>\n

\n\t#define uchar unsigned char<\/p>\n

\n\tunsigned char code tabP0\uff3b6\uff3d\uff3b8\uff3d={{0x00\uff0c0x00\uff0c0x00\uff0c0x00\uff0c0x08\uff0c0x00\uff0c0x00\uff0c0x00}\uff0c{0x00\uff0c0x00\uff0c0x00\uff0c0x18\uff0c0x18\uff0c0x00\uff0c0x00\uff0c0x00}\uff0c{0x00\uff0c0x00\uff0c0x10\uff0c0x38\uff0c0x38\uff0c0x10\uff0c0x00\uff0c0x00}\uff0c{0x00\uff0c0x00\uff0c0x38\uff0c0x7C\uff0c0x7C\uff0c0x38\uff0c0x00\uff0c0x00}\uff0c{0x00\uff0c0x38\uff0c0x7C\uff0c0x7C\uff0c0x7C\uff0c0x7C\uff0c0x38\uff0c0x00}\uff0c{0x3C\uff0c0x7E\uff0c0xFF\uff0c0xFF\uff0c0xFF\uff0c0xFF\uff0c0x7E\uff0c0x3C}};<\/p>\n

\n\tunsigned char code tabP2\uff3b\uff3d={0x7F\uff0c0xBF\uff0c0xDF\uff0c0xEF\uff0c0xF7\uff0c0xFB\uff0c0xFD\uff0c0xFE};<\/p>\n

\n\tvoid delay\uff08uint z\uff09<\/p>\n

\n\t{<\/p>\n

\n\tuchar x\uff0cy;<\/p>\n

\n\tfor\uff08x=z;x\u300b0;x--\uff09<\/p>\n

\n\tfor\uff08y=110;y\u300b0;y--\uff09;<\/p>\n

\n\t}<\/p>\n

\n\tvoid mai<\/u>n\uff08\uff09<\/p>\n

\n\t{<\/p>\n

\n\tint i\uff0cj\uff0ck;<\/p>\n

\n\twhile\uff081\uff09<\/p>\n

\n\t{<\/p>\n

\n\tfor\uff08j=0;j\u300a6;j++\uff09<\/p>\n

\n\t{<\/p>\n

\n\tfor\uff08k=0;k\u300a25;k++\uff09<\/p>\n

\n\t{<\/p>\n

\n\tfor\uff08i=0;i\u300a8;i++\uff09<\/p>\n

\n\t{<\/p>\n

\n\tP0=0;<\/p>\n

\n\tP2=tabP2\uff3bi\uff3d;<\/p>\n

\n\tP0=tabP0\uff3bj\uff3d\uff3bi\uff3d;<\/p>\n

\n\tdelay\uff082\uff09;<\/p>\n

\n\t}<\/p>\n

\n\t}<\/p>\n

\n\t}<\/p>\n

\n\t}<\/p>\n

\n\t}<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5927\u5bb6\u53ef\u66fe\u8bb0\u5f97\u793c\u82b1\u7efd\u653e\u90a3\u4e00\u523b\u7684\u7cbe\u5f69\uff1f\u5c0f\u65f6\u5019\u6bcf\u5f53\u770b\u793c\u82b1\u7efd\u653e\u65f6\uff0c\u603b\u5e0c\u671b\u81ea\u5df1\u80fd\u5c06\u90a3\u6700\u7f8e\u7684\u90a3\u4e00\u970e\u90a3\u6c38\u8fdc\u7559\u4e0b\u3002\u7ec8\u4e8e\uff0c\u4eca\u5929\u6211\u7684\u68a6\u60f3\u5b9e\u73b0\u4e86\u3002\u901a\u8fc7\u81ea\u5df1\u7684\u677f\u677f\uff0c\u53ea\u8981\u968f\u624b\u7f16\u7a0b\u51e0\u4e0b\u5c31\u641e\u5b9a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2369"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2369"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2369\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2369"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}