{"id":864,"date":"2020-10-30T18:27:57","date_gmt":"2020-10-30T12:57:57","guid":{"rendered":"https:\/\/botuniverse.in\/?p=864"},"modified":"2020-11-01T08:19:57","modified_gmt":"2020-11-01T02:49:57","slug":"how-to-use-a-lcd-part-2","status":"publish","type":"post","link":"https:\/\/botuniverse.in\/index.php\/2020\/10\/30\/how-to-use-a-lcd-part-2\/","title":{"rendered":"How to use a LCD Part 2"},"content":{"rendered":"\n<p>In the last part of How to use a LCD we learnt how do the pins work , different modes of the LCD &amp; using the Liquid Crystal library to show characters on the LCD. If you haven&#8217;t gone through it <a href=\"https:\/\/botuniverse.in\/index.php\/2020\/10\/30\/lcd-tutorial\/\" target=\"_blank\" rel=\"noreferrer noopener\">click here<\/a> to read that first.<\/p>\n\n\n\n<h3><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>lcd.clear()<\/strong><\/span><\/h3>\n\n\n\n<p>As the name suggests, this function does nothing more than just clear the display <\/p>\n\n\n\n<h3><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>lcd.blink()<\/strong><\/span><\/h3>\n\n\n\n<p>As the name suggests, it will start blinking the location of the LCD cursor.<\/p>\n\n\n\n<h3><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>lcd.noBlink()<\/strong><\/span><\/h3>\n\n\n\n<p>As the name suggests, it will stop the blinking LCD cursor.<\/p>\n\n\n\n<h3><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>lcd.cursor()<\/strong><\/span><\/h3>\n\n\n\n<p>As the name suggests, it will display an undersocre (_) under the place where the cursor is going to write on.<\/p>\n\n\n\n<h3><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>lcd.noCursor()<\/strong><\/span><\/h3>\n\n\n\n<p>As the name suggests it will hide the cursor<\/p>\n\n\n\n<p>Attached is another sample code to get you kickstarted<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;LiquidCrystal.h> \/\/Including the library\nLiquidCrystal lcd = LiquidCrystal(2,3,4,5,6,7); \/\/Making an object \n\nvoid setup(){\n    lcd.begin(16,2); \/\/ Determining the number of columns &amp; rows\n}\n\nvoid loop(){\n    lcd.print(\"Botuniverse\"); \/\/ Prints \"Botuniverse\" on lcd\n    delay(3000); \/\/ Makes the program wait for 3 seconds\n    lcd.cursor(); \/\/ Observe where the cursor is\n    delay(2000); \/\/ Makes the program wait for 2 seconds\n    lcd.setCursor(2,1); \/\/ Sets the location of the cursor. Observe where the cursor is\n    lcd.print(\"LCD Tutorial\") \/\/ Prints LCD Tutorial\n    delay(3000); \/\/ Makes the program wait for 3 seconds\n    lcd.clear(); \/\/See the LCD get completely empty\n    lcd.blink(); \/\/Observe which box is blinking\n    delay(4000); \/\/Makes the program wait for 4000 seconds\n    lcd.setCursor(7,1); \/\/Now see which box is blinking\n    delay(3000);\n    lcd.noBlink(); \/\/Closing the program *ALL the other lines\n    lcd.noCursor();\n    lcd.clear();\n}\n<\/code><\/pre>\n\n\n\n<p>I hope the code was self-explanatory &amp; so was the post, in the next part I will be covering custom characters. If you have any suggestions \/ ideas or doubts you can ask it in the comments section below or mail me at ideas@botuniverse.in . <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the last part of How to use a LCD we learnt how do the pins work , different modes of the LCD &amp; using the Liquid Crystal library to show characters on the LCD. If you haven&#8217;t gone through it click here to read that first. lcd.clear() As the name suggests, this function does nothing more than just clear&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[34],"tags":[36,41,47,48,45,37,42,40,43,38,35,39,46],"_links":{"self":[{"href":"https:\/\/botuniverse.in\/index.php\/wp-json\/wp\/v2\/posts\/864"}],"collection":[{"href":"https:\/\/botuniverse.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/botuniverse.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/botuniverse.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/botuniverse.in\/index.php\/wp-json\/wp\/v2\/comments?post=864"}],"version-history":[{"count":10,"href":"https:\/\/botuniverse.in\/index.php\/wp-json\/wp\/v2\/posts\/864\/revisions"}],"predecessor-version":[{"id":884,"href":"https:\/\/botuniverse.in\/index.php\/wp-json\/wp\/v2\/posts\/864\/revisions\/884"}],"wp:attachment":[{"href":"https:\/\/botuniverse.in\/index.php\/wp-json\/wp\/v2\/media?parent=864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/botuniverse.in\/index.php\/wp-json\/wp\/v2\/categories?post=864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/botuniverse.in\/index.php\/wp-json\/wp\/v2\/tags?post=864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}