{"id":706,"date":"2022-12-15T16:07:56","date_gmt":"2022-12-15T08:07:56","guid":{"rendered":"http:\/\/wordpress.loc\/?p=706"},"modified":"2022-12-15T16:08:26","modified_gmt":"2022-12-15T08:08:26","slug":"esp32_ch3-7","status":"publish","type":"post","link":"https:\/\/www.nmking.io\/index.php\/2022\/12\/15\/706\/","title":{"rendered":"ESP32 x NBIoT \u8f14\u52a9\u7248 \u80cc\u9762I2C LCD"},"content":{"rendered":"\n<figure class=\"wp-block-pullquote\"><blockquote><p>NBIoT \u8f14\u52a9\u7248\u4f7f\u7528\u8005\u82e5\u9700\u4f7f\u7528\u80cc\u9762\u7684I2C LCD\u8173\u4f4d\uff0c\u8acb\u53c3\u95b1\u4e0b\u9762\u8aaa\u660e<\/p><\/blockquote><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u6211\u7684ESP32\u5be6\u505a\u66f8\u7c4d\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.nmking.io\/index.php\/2022\/11\/10\/esp32_ch1-2\/\" target=\"_blank\">\u6211\u51fa\u66f8\u4e86 ESP32 \u7269\u806f\u7db2\u5c08\u984c<\/a><br>\u535a\u5ba2\u4f86\u7db2\u5740\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.books.com.tw\/products\/0010901195\" target=\"_blank\">https:\/\/www.books.com.tw\/products\/0010901195<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/pic.pimg.tw\/youyouyou\/1620920050-3830720797-g_n.jpg?resize=842%2C631&#038;ssl=1\" alt=\"\" width=\"842\" height=\"631\"\/><figcaption class=\"wp-element-caption\">NBIoT \u8f14\u52a9\u7248I2C LCD\u5b8c\u6210\u6548\u679c<\/figcaption><\/figure>\n\n\n\n<p>\u80cc\u9762\u7684I2C\u70ba\u9644\u52a0\u7684PCF85741 I2C\u6676\u7247\uff0c\u56e0\u6b64\u4f7f\u7528\u7684\u8173\u4f4d\u662f26,27\u800c\u975e21,22\uff0c\u7a0b\u5f0f\u8acb\u53c3\u95b1\u4e0b\u65b9\u8aaa\u660e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;Wire.h> \n#include &lt;LiquidCrystal_I2C.h> \/\/\u8acb\u5b89\u88ddLiquidCrystal_I2C(Frank)\n\nLiquidCrystal_I2C lcd(0x27,16,2);\/\/\u6bcf\u500bLCD\u4f4d\u5740\u53ef\u80fd\u4e0d\u540c\uff0c\u8acb\u5148\u7528I2C\u6383\u63cf\nvoid setup(){\n  Wire.begin (26, 27);\/\/\u4f7f\u7528Matrix\u5916\u52a0PCF85741 I2C\u6676\u7247\n  lcd.init();\/\/\u521d\u59cb\u5316\n  lcd.backlight();\/\/\u958b\u555f\u80cc\u5149\n  lcd.setCursor(3,0);\/\/\u79fb\u52d5\u6e38\u6a19\u5230\u7b2c0\u884c\u7b2c3\u500b\u5b57\n  lcd.print(\"Hello, world!\");\/\/\u5370\u51fa\u6587\u5b57\n  lcd.setCursor(2,1);\/\/\u79fb\u52d5\u6e38\u6a19\u5230\u7b2c1\u884c\u7b2c2\u500b\u5b57\n  lcd.print(\"Ywrobot Arduino!\");\/\/\u5370\u51fa\u6587\u5b57\n}\n\nvoid loop(){\n\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>NBIoT \u8f14\u52a9\u7248\u4f7f\u7528\u8005\u82e5\u9700\u4f7f\u7528\u80cc\u9762\u7684I2C LCD\u8173\u4f4d\uff0c\u8acb\u53c3\u95b1\u4e0b\u9762\u8aaa\u660e \u6211\u7684ESP32\u5be6\u505a\u66f8\u7c4d\uff1a\u6211\u51fa\u66f8\u4e86 E [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-706","post","type-post","status-publish","format-standard","hentry","category-esp32"],"blocksy_meta":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/posts\/706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/comments?post=706"}],"version-history":[{"count":1,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/posts\/706\/revisions"}],"predecessor-version":[{"id":707,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/posts\/706\/revisions\/707"}],"wp:attachment":[{"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/media?parent=706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/categories?post=706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nmking.io\/index.php\/wp-json\/wp\/v2\/tags?post=706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}