{"id":762,"date":"2019-11-23T20:11:14","date_gmt":"2019-11-23T12:11:14","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=762"},"modified":"2020-09-27T17:03:11","modified_gmt":"2020-09-27T09:03:11","slug":"lcd-1602","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=762","title":{"rendered":"Arduino-LCD1602"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"670\" src=\"http:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/arduino-lcd-1.png\" alt=\"\" class=\"wp-image-764\" srcset=\"https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/arduino-lcd-1.png 705w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/arduino-lcd-1-300x285.png 300w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2019\/11\/arduino-lcd-1-53x50.png 53w\" sizes=\"(max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p> <strong>\u6750\u6599<\/strong> <br> \u9762\u5305\u677f x1<br> 3\u811a\u7535\u4f4d\u5668 x1<br> LCD 1602 x1<br> Arduino UNO x1<\/p>\n\n\n\n<p><strong>\u5f15\u811a\u7b26\u53f7\u8bf4\u660e<\/strong><br> 1    GND-\u63a5\u5730<br> 2    VCC-5V\u6b63\u6781<br> 3    V0- \u5bf9\u6bd4\u5ea6\u8c03\u6574\uff0c\u63a5\u6b63\u6781\u65f6\u5bf9\u6bd4\u5ea6\u6700\u5f31<br> 4    RS- \u5bc4\u5b58\u5668\u9009\u62e9\uff0c1\u6570\u636e\u5bc4\u5b58\u5668\uff08DR\uff09\uff0c0\u6307\u4ee4\u5bc4\u5b58\u5668\uff08IR\uff09<br> 5    R\/W-\u8bfb\u5199\u9009\u62e9\uff0c1\u5ea6\uff0c0\u5199<br> 6    EN -\u4f7f\u80fd(enable)\u7aef\uff0c\u9ad8\u7535\u5e73\u8bfb\u53d6\u4fe1\u606f\uff0c\u8d1f\u8df3\u53d8\u65f6\u6267\u884c\u6307\u4ee4<br> 7~14 D0~D7   8\u4f4d\u53cc\u5411\u6570\u636e<br> 15    BLA-\u80cc\u5149\u6b63\u6781<br> 16    BLK-\u80cc\u5149\u8d1f\u6781<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;LiquidCrystal.h>\n\/\/ \u521d\u59cb\u5316\u9488\u811a\nconst int rs = 3, en = 5, d4 = 10, d5 = 11, d6 = 12, d7 = 13;\nLiquidCrystal lcd(rs, en, d4, d5, d6, d7);\nvoid setup() \n{\n  \/\/\u8bbe\u7f6eLCD\u8981\u663e\u793a\u7684\u5217\u6570\u3001\u884c\u6570\uff0c\u53732\u884c16\u5217\n  lcd.begin(16, 2);\n  lcd.setCursor(0, 0);\n  lcd.print(\"hello, world!\");\n  lcd.setCursor(0, 1);\n  lcd.print(\"welcome!\");\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6750\u6599 \u9762\u5305\u677f x1 3\u811a\u7535\u4f4d\u5668 x1 LCD 1602 x1 Arduino UNO x1 \u5f15\u811a\u7b26\u53f7\u8bf4\u660e 1  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/762"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=762"}],"version-history":[{"count":2,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/762\/revisions"}],"predecessor-version":[{"id":766,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/762\/revisions\/766"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}