{"id":156,"date":"2014-04-15T13:58:05","date_gmt":"2014-04-15T13:58:05","guid":{"rendered":"https:\/\/arduino-developer.com\/arduino\/?p=156"},"modified":"2014-09-26T18:01:00","modified_gmt":"2014-09-26T18:01:00","slug":"liquidcrystal-library","status":"publish","type":"post","link":"https:\/\/arduino-developer.com\/arduino\/programming\/lcd-displays\/liquidcrystal-library","title":{"rendered":"LiquidCrystal Library"},"content":{"rendered":"<p>\n<a href=\"http:\/\/arduino.cc\/en\/Reference\/LiquidCrystal\">LiquidCrystal Library<\/a>\n<\/p>\n<h4>\nUsing The Library<br \/>\n<\/h4>\n<h5>\nBasic Setup<br \/>\n<\/h5>\n<p>\nIn your main sketch file\n<\/p>\n<pre>\r\n<code>\r\n\/\/----- LCD DISPLAY -----\r\n#include &lt;LiquidCrystal.h&gt;\r\nLiquidCrystal lcd(12, 10, 11, 9, 8, 7, 6);    \/\/7 wire usage: (rs, rw, enable, d4, d5, d6, d7) \r\n<\/code><\/pre>\n<p>\nIf you want to use it in other files also\n<\/p>\n<pre>\r\n<code>\r\n#include &lt;LiquidCrystal.h&gt;\r\nextern LiquidCrystal lcd;\r\n<\/code><\/pre>\n<p>\nInitialise\n<\/p>\n<pre>\r\n<code>\r\n  \/\/----- SETUP LCD -----\r\n  lcd.begin(20, 2);        \/\/Characters per line, no of lines\r\n<\/code><\/pre>\n<h5>\nWriting To Screen<br \/>\n<\/h5>\n<p>\nWrite text\n<\/p>\n<pre>\r\n<code>\r\n  lcd.setCursor(0, 0);            \/\/Character, Line\r\n  lcd.print(&quot;Hello               &quot;);\r\n  lcd.setCursor(0, 1);\r\n  lcd.print(&quot;World               &quot;);\r\n<\/code><\/pre>\n<p>\nWrite single characters\n<\/p>\n<pre>\r\n<code>\r\n  lcd.write(&quot;1&quot;);\r\n  lcd.write(0x30 + b_temp);\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LiquidCrystal Library Using The Library Basic Setup In your main sketch file \/\/&#8212;&#8211; LCD DISPLAY &#8212;&#8211; #include &lt;LiquidCrystal.h&gt; LiquidCrystal lcd(12, 10, 11, 9, 8, 7, 6); \/\/7 wire usage: (rs, rw, enable, d4, d5, d6, d7) If you want to use it in other files also #include &lt;LiquidCrystal.h&gt; extern LiquidCrystal lcd; Initialise \/\/&#8212;&#8211; SETUP LCD [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-lcd-displays"],"_links":{"self":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":5,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":161,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/156\/revisions\/161"}],"wp:attachment":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}