http://gharee.com/wiki/index.php?action=history&feed=atom&title=SKU%3ARB-05L005_%E4%B8%B2%E8%A1%8CLCD1602%E5%AD%97%E7%AC%A6%E6%B6%B2%E6%99%B6%E6%98%BE%E7%A4%BA%E5%99%A8 123,123 2025-06-28T05:17:52Z 本wiki的該頁(yè)面的版本歷史 MediaWiki 1.21.2 http://gharee.com/wiki/index.php?title=SKU:RB-05L005_%E4%B8%B2%E8%A1%8CLCD1602%E5%AD%97%E7%AC%A6%E6%B6%B2%E6%99%B6%E6%98%BE%E7%A4%BA%E5%99%A8&diff=8559&oldid=prev Zhangxin:/* 產(chǎn)品相關(guān)推薦 */ 2021-12-14T07:55:59Z <p>?<span dir="auto"><span class="autocomment">產(chǎn)品相關(guān)推薦</span></span></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">2021年12月14日 (二) 07:55的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第126行:</td> <td colspan="2" class="diff-lineno">第126行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==產(chǎn)品相關(guān)推薦==</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==產(chǎn)品相關(guān)推薦==</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:erweima.png|230px|無(wú)框|右]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:erweima.png|230px|無(wú)框|右]]</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">=== 產(chǎn)品資料 ===</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">下載鏈接:https://pan.baidu.com/s/1xr4D_zbgJUtw9lPeX6Pa7A </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">提取碼:iuh9</ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===產(chǎn)品購(gòu)買地址===</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===產(chǎn)品購(gòu)買地址===</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[http://gharee.com/goods-130.html 串行LCD1602字符液晶顯示器]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[http://gharee.com/goods-130.html 串行LCD1602字符液晶顯示器]</div></td></tr> </table> Zhangxin http://gharee.com/wiki/index.php?title=SKU:RB-05L005_%E4%B8%B2%E8%A1%8CLCD1602%E5%AD%97%E7%AC%A6%E6%B6%B2%E6%99%B6%E6%98%BE%E7%A4%BA%E5%99%A8&diff=7050&oldid=prev Arduino77:/* 使用方法 */ 2016-12-03T08:56:28Z <p>?<span dir="auto"><span class="autocomment">使用方法</span></span></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">2016年12月3日 (六) 08:56的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第14行:</td> <td colspan="2" class="diff-lineno">第14行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 4P 傳感器連接線 * 1個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 4P 傳感器連接線 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==使用方法==</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==使用方法==</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">===功能說明===</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">如圖所示:</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[文件:05L005003.png|600px|縮略圖|居中]]</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* 標(biāo)號(hào) 1:紅色電源指示燈,當(dāng)模塊供電正常時(shí),電源指示燈亮起</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* 標(biāo)號(hào) 2:外部連接串行接口,用于與單片機(jī)的串口連接</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* 標(biāo)號(hào) 3:電位計(jì) A,串行液晶背光亮度調(diào)節(jié),順時(shí)針轉(zhuǎn)動(dòng),背光變亮</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* 標(biāo)號(hào) 4:電位計(jì) B,串行液晶顯示對(duì)比度調(diào)節(jié),順時(shí)針轉(zhuǎn)動(dòng),對(duì)比度變高</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* 標(biāo)號(hào) 5:串行液晶手動(dòng)清屏按鍵,按下按鍵,液晶清屏刷新顯示</ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===靜態(tài)字符顯示===</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===靜態(tài)字符顯示===</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 使用硬件</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 使用硬件</div></td></tr> <tr><td colspan="2" class="diff-lineno">第111行:</td> <td colspan="2" class="diff-lineno">第119行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>:Serial.print(&quot;$PRINT Hello World!\r\n&quot;); &#160;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>:Serial.print(&quot;$PRINT Hello World!\r\n&quot;); &#160;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>:Serial.print(&quot;$CURSOR 1 1\r\n&quot;);</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>:Serial.print(&quot;$CURSOR 1 1\r\n&quot;);</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==視頻演示==</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==視頻演示==</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[File:1602 ye jing.png|400px|左|link=http://v.youku.com/v_show/id_XMTc3ODY3Mzg0.html?from=y1.7-2]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[File:1602 ye jing.png|400px|左|link=http://v.youku.com/v_show/id_XMTc3ODY3Mzg0.html?from=y1.7-2]]</div></td></tr> </table> Arduino77 http://gharee.com/wiki/index.php?title=SKU:RB-05L005_%E4%B8%B2%E8%A1%8CLCD1602%E5%AD%97%E7%AC%A6%E6%B6%B2%E6%99%B6%E6%98%BE%E7%A4%BA%E5%99%A8&diff=7047&oldid=prev 2016年12月3日 (六) 08:46 Arduino77 2016-12-03T08:46:38Z <p></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td> <td colspan='2' style="background-color: white; color:black; text-align: center;">2016年12月3日 (六) 08:46的版本</td> </tr><tr><td colspan="2" class="diff-lineno">第2行:</td> <td colspan="2" class="diff-lineno">第2行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:thchg1.jpg|500px|有框|右]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:thchg1.jpg|500px|有框|右]]</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==產(chǎn)品概述==</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>==產(chǎn)品概述==</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>最新推出的Serial LCD1602字符液晶板,主板采用全新優(yōu)質(zhì) 2 行 16 個(gè)字符液晶,模塊不僅具有對(duì)比度調(diào)節(jié)旋鈕、背光燈調(diào)節(jié)旋鈕,還具有復(fù)位按鈕和 TTL 通信接口,可以與各種具有串口的控制器相連接使用,無(wú)需再買相關(guān)轉(zhuǎn)接板。對(duì)于 Arduino初學(xué)者來說,不必為繁瑣復(fù)雜液晶驅(qū)動(dòng)電路連線而頭疼了,這款液晶模塊真正意義上將電路簡(jiǎn)化,直接將此模塊插到 Arduino Sensor Shield V5.0 <del class="diffchange diffchange-inline"> 傳感器擴(kuò)展板上 </del>COM <del class="diffchange diffchange-inline">設(shè)備接口即可,通用 </del>4P <del class="diffchange diffchange-inline">傳感器連接線連接,經(jīng)過 </del>Arduino <del class="diffchange diffchange-inline">控制器編程后,可輕松實(shí)現(xiàn)標(biāo)識(shí)標(biāo)語(yǔ)、傳感器數(shù)據(jù)的記錄顯示。 </del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>最新推出的Serial LCD1602字符液晶板,主板采用全新優(yōu)質(zhì) 2 行 16 個(gè)字符液晶,模塊不僅具有對(duì)比度調(diào)節(jié)旋鈕、背光燈調(diào)節(jié)旋鈕,還具有復(fù)位按鈕和 TTL 通信接口,可以與各種具有串口的控制器相連接使用,無(wú)需再買相關(guān)轉(zhuǎn)接板。對(duì)于 Arduino初學(xué)者來說,不必為繁瑣復(fù)雜液晶驅(qū)動(dòng)電路連線而頭疼了,這款液晶模塊真正意義上將電路簡(jiǎn)化,直接將此模塊插到 Arduino Sensor Shield V5.0 <ins class="diffchange diffchange-inline">傳感器擴(kuò)展板上的 </ins>COM <ins class="diffchange diffchange-inline">設(shè)備接口即可,可以使用通用 </ins>4P <ins class="diffchange diffchange-inline">傳感器連接線連接,也可以用杜邦線連接,經(jīng)過 </ins>Arduino <ins class="diffchange diffchange-inline">控制器編程,可輕松實(shí)現(xiàn)標(biāo)識(shí)標(biāo)語(yǔ)、傳感器數(shù)據(jù)的記錄顯示。 </ins></div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>==<del class="diffchange diffchange-inline">規(guī)格參數(shù)</del>==</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>==<ins class="diffchange diffchange-inline">產(chǎn)品參數(shù)</ins>==</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># 供電電壓:5V</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># 供電電壓:5V</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># 對(duì)比度:電位計(jì)調(diào)節(jié)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># 對(duì)比度:電位計(jì)調(diào)節(jié)</div></td></tr> <tr><td colspan="2" class="diff-lineno">第10行:</td> <td colspan="2" class="diff-lineno">第10行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># 模塊尺寸:27.7mm×42.6mm</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># 模塊尺寸:27.7mm×42.6mm</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># 模塊重量:43g</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># 模塊重量:43g</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>==<del class="diffchange diffchange-inline">使用方法==</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>==<ins class="diffchange diffchange-inline">產(chǎn)品清單</ins>==</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">==發(fā)貨清單</del>==</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 1602 串行液晶擴(kuò)展板 * 1個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 1602 串行液晶擴(kuò)展板 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 4P 傳感器連接線 * 1個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* 4P 傳感器連接線 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>===<del class="diffchange diffchange-inline">使用硬件</del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>==<ins class="diffchange diffchange-inline">使用方法</ins>==</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>==<ins class="diffchange diffchange-inline">=靜態(tài)字符顯示===</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* 使用硬件</ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#&#160; Carduino UNO 控制器 * 1個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#&#160; Carduino UNO 控制器 * 1個(gè)</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#&#160; Arduino 傳感器擴(kuò)展板 * 1個(gè)</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#&#160; Arduino 傳感器擴(kuò)展板 * 1個(gè)</div></td></tr> <tr><td colspan="2" class="diff-lineno">第22行:</td> <td colspan="2" class="diff-lineno">第23行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#&#160; 3P 傳感器連接線 * 1條</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#&#160; 3P 傳感器連接線 * 1條</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#&#160; USB 數(shù)據(jù)通信線 * 1條</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>#&#160; USB 數(shù)據(jù)通信線 * 1條</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">===</del>硬件連接<del class="diffchange diffchange-inline">===</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* </ins>硬件連接</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>+、-&#160; 、RX、TX 分別接到 Arduino&#160; 傳感器擴(kuò)展板 V5.0 的 COM 接口上,或者直接使用杜邦線與UNO控制器進(jìn)行連接。</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>+、-&#160; 、RX、TX 分別接到 Arduino&#160; 傳感器擴(kuò)展板 V5.0 的 COM 接口上,或者直接使用杜邦線與UNO控制器進(jìn)行連接。</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:thchg2.jpg|500px|有框|居中]]</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[文件:thchg2.jpg|500px|有框|居中]]</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>:如圖所示,使用杜邦線將 Serial LCD1602 連接到 Arduino 傳感器擴(kuò)展板的 COM 接口上,將代碼編譯后下載到 Arduino 里,注意下載的時(shí)候不能將串行液晶插接在V5.0擴(kuò)展板上。</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>:如圖所示,使用杜邦線將 Serial LCD1602 連接到 Arduino 傳感器擴(kuò)展板的 COM 接口上,將代碼編譯后下載到 Arduino 里,注意下載的時(shí)候不能將串行液晶插接在V5.0擴(kuò)展板上。</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">===</del>例子程序<del class="diffchange diffchange-inline">===</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* </ins>例子程序</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;pre style='color:blue'&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>&lt;pre style='color:blue'&gt;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>int switchPin = 7;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; //定義數(shù)字口 7 為大按鈕接口 &#160;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>int switchPin = 7;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; //定義數(shù)字口 7 為大按鈕接口 &#160;</div></td></tr> <tr><td colspan="2" class="diff-lineno">第46行:</td> <td colspan="2" class="diff-lineno">第47行:</td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>} &#160;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>} &#160;</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>}&lt;/pre&gt;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>}&lt;/pre&gt;</div></td></tr> <tr><td class='diff-marker'>?</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">===</del>程序效果<del class="diffchange diffchange-inline">===</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">* </ins>程序效果</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>此部分代碼功能是當(dāng)按下按鈕時(shí)將信息打印到 LCD1602 上,第 1 行第Welcome to,第 2 行第 1 列顯示 www.robotbase.cn 顯示效果如上圖所示。 &#160;</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>此部分代碼功能是當(dāng)按下按鈕時(shí)將信息打印到 LCD1602 上,第 1 行第Welcome to,第 2 行第 1 列顯示 www.robotbase.cn 顯示效果如上圖所示。 &#160;</div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">===動(dòng)態(tài)數(shù)據(jù)顯示===</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* 使用硬件</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">#&#160; Carduino UNO 控制器 * 1個(gè)</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">#&#160; Arduino 傳感器擴(kuò)展板 V5.0 * 1個(gè)</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">#&#160; Serial LCD1602 液晶 * 1個(gè)</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">#&#160; 旋轉(zhuǎn)角度電位計(jì)模塊 * 1個(gè)</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">#&#160; 通用 4P 杜邦線 * 1條</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">#&#160; 3P 傳感器連接線 * 1條</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">#&#160; USB 數(shù)據(jù)通信線 * 1條</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* 硬件連接</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">+、- 、RX、TX 分別接到 Arduino 傳感器擴(kuò)展板 V5.0 的 COM 接口上,或者直接使用杜邦線與 UNO 控制器進(jìn)行連接。&lt;br/&gt;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">電位計(jì)模塊連接到 UNO 控制器的 A0 接口。&lt;br/&gt;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">注意:連接時(shí),串行液晶的 RX 連接 UNO 控制器的 TX,串行液晶的 TX 連接 UNO 控制器的 RX,如果連接錯(cuò)誤會(huì)造成液晶不能正常顯示。&lt;br/&gt;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">如圖所示:</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[文件:05L005001.png|600px|縮略圖|居中]]</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* 例子程序</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&lt;pre style='color:blue'&gt;#define&#160; rotation A0</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">int val = 0;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">void setup()</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{ </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; Serial.begin(9600);&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; //設(shè)置波特率為 9600 </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">}</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">void loop()</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{ </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; val = analogRead(rotation);</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; Serial.print(&quot;$GO 1 4\r\n&quot;);&#160; &#160; &#160; &#160; &#160; &#160; //顯示的地址為第 1 行第 4 列</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; Serial.print(&quot;$PRINT val = \r\n&quot;); </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; Serial.print(&quot;$PRINT &quot;); //打印字符 Welcome to </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; Serial.print(val); //打印字符 Welcome to </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; Serial.print(&quot;\r\n&quot;); //打印字符 Welcome to </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; Serial.print(&quot;$GO 2 1\r\n&quot;);&#160; &#160; &#160; &#160; &#160; &#160; //顯示的地址為第 2 行第 1 列 </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; Serial.print(&quot;$PRINT www.robotbase.cn\r\n&quot;);//打印字符 www.robotbase.cn </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; Serial.print(&quot;$CURSOR 1 4\r\n&quot;);&#160; &#160; //光標(biāo)移動(dòng)到第 1 行第 1 列 </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; delay(1000);</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">&#160; Serial.print(&quot;$CLEAR \r\n&quot;); </ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">}&lt;/pre&gt;</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">說明:程序中我們?cè)O(shè)置了 1s 刷新一次,這個(gè)刷新時(shí)間可以根據(jù)需求修改,不過刷新太快的話,會(huì)使液晶屏閃爍。</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">* 程序效果</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">當(dāng)我們旋轉(zhuǎn)電位計(jì)模塊時(shí),串行液晶上會(huì)顯示出當(dāng)前的模擬量值</ins></div></td></tr> <tr><td colspan="2">&#160;</td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[文件:05L005002.png|600px|縮略圖|居中]]</ins></div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===指令集說明 ===</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===指令集說明 ===</div></td></tr> <tr><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>:Serial.print(&quot;$CLEAR(清屏)\r(當(dāng)前的光標(biāo)移動(dòng)到行首、不移動(dòng)到下一行)\n(光</div></td><td class='diff-marker'>&#160;</td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>:Serial.print(&quot;$CLEAR(清屏)\r(當(dāng)前的光標(biāo)移動(dòng)到行首、不移動(dòng)到下一行)\n(光</div></td></tr> </table> Arduino77 http://gharee.com/wiki/index.php?title=SKU:RB-05L005_%E4%B8%B2%E8%A1%8CLCD1602%E5%AD%97%E7%AC%A6%E6%B6%B2%E6%99%B6%E6%98%BE%E7%A4%BA%E5%99%A8&diff=6837&oldid=prev Arduino77:以“<br/> 右 ==產(chǎn)品概述== 最新推出的Serial LCD1602字符液晶板,主板采用全新優(yōu)質(zhì) 2 行 16 個(gè)字符液晶,模...”為內(nèi)容創(chuàng)建頁(yè)面 2016-11-11T09:21:45Z <p>以“&lt;br/&gt; <a href="/wiki/index.php/%E6%96%87%E4%BB%B6:Thchg1.jpg" title="文件:Thchg1.jpg">右</a> ==產(chǎn)品概述== 最新推出的Serial LCD1602字符液晶板,主板采用全新優(yōu)質(zhì) 2 行 16 個(gè)字符液晶,模...”為內(nèi)容創(chuàng)建頁(yè)面</p> <p><b>新頁(yè)面</b></p><div>&lt;br/&gt;<br /> [[文件:thchg1.jpg|500px|有框|右]]<br /> ==產(chǎn)品概述==<br /> 最新推出的Serial LCD1602字符液晶板,主板采用全新優(yōu)質(zhì) 2 行 16 個(gè)字符液晶,模塊不僅具有對(duì)比度調(diào)節(jié)旋鈕、背光燈調(diào)節(jié)旋鈕,還具有復(fù)位按鈕和 TTL 通信接口,可以與各種具有串口的控制器相連接使用,無(wú)需再買相關(guān)轉(zhuǎn)接板。對(duì)于 Arduino初學(xué)者來說,不必為繁瑣復(fù)雜液晶驅(qū)動(dòng)電路連線而頭疼了,這款液晶模塊真正意義上將電路簡(jiǎn)化,直接將此模塊插到 Arduino Sensor Shield V5.0 傳感器擴(kuò)展板上 COM 設(shè)備接口即可,通用 4P 傳感器連接線連接,經(jīng)過 Arduino 控制器編程后,可輕松實(shí)現(xiàn)標(biāo)識(shí)標(biāo)語(yǔ)、傳感器數(shù)據(jù)的記錄顯示。 <br /> ==規(guī)格參數(shù)==<br /> # 供電電壓:5V<br /> # 對(duì)比度:電位計(jì)調(diào)節(jié)<br /> # 背光:電位計(jì)調(diào)節(jié) <br /> # 接口:+、-、RX、TX<br /> # 模塊尺寸:27.7mm×42.6mm<br /> # 模塊重量:43g<br /> ==使用方法==<br /> ==發(fā)貨清單==<br /> * 1602 串行液晶擴(kuò)展板 * 1個(gè)<br /> * 4P 傳感器連接線 * 1個(gè)<br /> ===使用硬件===<br /> # Carduino UNO 控制器 * 1個(gè)<br /> # Arduino 傳感器擴(kuò)展板 * 1個(gè)<br /> # Serial LCD1602 液晶 * 1個(gè)<br /> # 大按鈕模塊 * 1個(gè)<br /> # 通用 4P 杜邦線 * 1條<br /> # 3P 傳感器連接線 * 1條<br /> # USB 數(shù)據(jù)通信線 * 1條<br /> ===硬件連接===<br /> +、- 、RX、TX 分別接到 Arduino 傳感器擴(kuò)展板 V5.0 的 COM 接口上,或者直接使用杜邦線與UNO控制器進(jìn)行連接。<br /> [[文件:thchg2.jpg|500px|有框|居中]]<br /> :如圖所示,使用杜邦線將 Serial LCD1602 連接到 Arduino 傳感器擴(kuò)展板的 COM 接口上,將代碼編譯后下載到 Arduino 里,注意下載的時(shí)候不能將串行液晶插接在V5.0擴(kuò)展板上。<br /> ===例子程序===<br /> &lt;pre style='color:blue'&gt;<br /> int switchPin = 7; //定義數(shù)字口 7 為大按鈕接口 <br /> void setup()<br /> { <br /> Serial.begin(9600); //設(shè)置波特率為 9600 <br /> pinMode(switchP in, INPUT); //設(shè)置數(shù)字口 7 為輸入模式 <br /> }<br /> void loop()<br /> { <br /> if (LOW == digitalRead(switchPin))//如果 switchP in 為低電平則執(zhí)行下面的語(yǔ)句 <br /> { <br /> Serial.print(&quot;$CLEAR\r\n&quot;); //清屏 <br /> Serial.print(&quot;$GO 1 4\r\n&quot;); //顯示的地址為第 1 行第 4 列 <br /> Serial.print(&quot;$PRINT Welcome to\r\n&quot;); //打印字符 Welcome to <br /> Serial.print(&quot;$GO 2 1\r\n&quot;); //顯示的地址為第 2 行第 1 列 <br /> Serial.print(&quot;$PRINT www.robotbase.cn\r\n&quot;);//打印字符 www.robotbase.cn <br /> Serial.print(&quot;$CURSOR 1 1\r\n&quot;); //光標(biāo)移動(dòng)到第 1 行第 1 列 <br /> } <br /> }&lt;/pre&gt;<br /> ===程序效果===<br /> 此部分代碼功能是當(dāng)按下按鈕時(shí)將信息打印到 LCD1602 上,第 1 行第Welcome to,第 2 行第 1 列顯示 www.robotbase.cn 顯示效果如上圖所示。 <br /> ===指令集說明 ===<br /> :Serial.print(&quot;$CLEAR(清屏)\r(當(dāng)前的光標(biāo)移動(dòng)到行首、不移動(dòng)到下一行)\n(光<br /> 標(biāo)移動(dòng)到下一行、不移動(dòng)到行首)&quot;); <br /> :Serial.print(&quot;$GO 行號(hào)(1 或 2) 列號(hào)(1 到 16)<br /> \n&quot;); <br /> :Serial.print(&quot;$PRINT 顯示的字符<br /> \n&quot;); <br /> :Serial.print(&quot;$GO 行號(hào)(1 或 2) 列號(hào)(1 到 16) \r\n&quot;); <br /> :Serial.print(&quot;$PRINT 顯示的字符<br /> \n&quot;); <br /> :Serial.print(&quot;$CURSOR 1 1\r\n&quot;); <br /> <br /> 例子: <br /> :Serial.print(&quot;$CLEAR \r\n&quot;); <br /> :Serial.print(&quot;$GO 1 1\r\n&quot;); <br /> :Serial.print(&quot;$PRINT RobotBase\r\n&quot;); <br /> :Serial.print(&quot;$GO 2 4\r\n&quot;); <br /> :Serial.print(&quot;$PRINT Hello World!\r\n&quot;); <br /> :Serial.print(&quot;$CURSOR 1 1\r\n&quot;);<br /> ==視頻演示==<br /> [[File:1602 ye jing.png|400px|左|link=http://v.youku.com/v_show/id_XMTc3ODY3Mzg0.html?from=y1.7-2]]<br /> [[File:iic1602 01.png|400px|居中|link=http://v.youku.com/v_show/id_XMjQzMjMzOTky.html?from=y1.7-2]]<br /> &lt;br/&gt;<br /> ==產(chǎn)品相關(guān)推薦==<br /> [[文件:erweima.png|230px|無(wú)框|右]]<br /> ===產(chǎn)品購(gòu)買地址===<br /> [http://gharee.com/goods-130.html 串行LCD1602字符液晶顯示器]<br /> ===周邊產(chǎn)品推薦===<br /> [http://gharee.com/goods-128.html Arduino LCD12864 點(diǎn)陣液晶擴(kuò)展板]&lt;br/&gt;<br /> [http://gharee.com/goods-44.html Arduino LCD 4884 搖桿液晶擴(kuò)展板]<br /> <br /> ===相關(guān)問題解答===<br /> [http://www.makerspace.cn/forum.php?mod=viewthread&amp;tid=2808&amp;highlight=lcd1602 arduino控制LCD1602的一點(diǎn)兒經(jīng)驗(yàn)分享]&lt;br/&gt;<br /> [http://www.makerspace.cn/forum.php?mod=viewthread&amp;tid=2900&amp;highlight=lcd1602 arduino學(xué)習(xí)筆記 arduino lcd1602電子時(shí)鐘 ]<br /> ===相關(guān)學(xué)習(xí)資料===<br /> [http://pan.baidu.com/s/13jrvy 測(cè)試手冊(cè)]&lt;br/&gt;<br /> [http://v.youku.com/v_show/id_XMzkzMjIxNjk2.html 遠(yuǎn)距離傳輸演示視頻]&lt;br/&gt;<br /> <br /> [http://www.makerspace.cn/portal.php 奧松機(jī)器人技術(shù)論壇]</div> Arduino77