{"id":3738,"date":"2021-03-25T19:37:46","date_gmt":"2021-03-25T19:37:46","guid":{"rendered":"http:\/\/rodmilstead.com\/pt\/?page_id=3738"},"modified":"2021-05-19T15:58:07","modified_gmt":"2021-05-19T15:58:07","slug":"arduino-display-special-characters","status":"publish","type":"page","link":"http:\/\/rodmilstead.com\/pt\/arduino-sample-coderesources\/arduino-display-special-characters\/","title":{"rendered":"Arduino Display: Special Characters"},"content":{"rendered":"<p>This will give us a chance to work with a display and special characters.\u00a0 Like these:<\/p>\n<p><a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-12.26.20-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-3739\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-12.26.20-PM.png\" alt=\"Arduino Display Special Characters\" width=\"866\" height=\"408\" srcset=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-12.26.20-PM.png 866w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-12.26.20-PM-300x141.png 300w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-12.26.20-PM-768x362.png 768w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/a><\/p>\n<p>I have code AND wiring info for you &#8211; keep scrolling.<\/p>\n<p>To save you time in wiring your display, follow these steps to make a copy of your first Arduino Display Circuit and Code or click here for wiring guide:<\/p>\n<ol>\n<li>login to tinkercad.com<\/li>\n<li>click on circuits on the left hand menu<\/li>\n<li>find your Arduino LED Display Circuit but DON&#8217;T OPEN IT, OK?<\/li>\n<li>click on the gear icon in the top right hand corner of the thumbnail for that circuit (see image below).<\/li>\n<li>This will make a copy of your original circuit.\u00a0 You can modify the copy without changing the original<\/li>\n<li><a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-9.19.03-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3736 alignnone\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-9.19.03-AM.png\" alt=\"\" width=\"441\" height=\"262\" srcset=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-9.19.03-AM.png 441w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-9.19.03-AM-300x178.png 300w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/a>.<\/li>\n<\/ol>\n<p>7. <a href=\"https:\/\/www.tinkercad.com\/things\/1zxhcnhglsr-special-characters-copy-paste\/editel?sharecode=7yLkF99BVtePp8iWUaDNmg9pwLSHrnn0E7fnZ-ctTa8\" target=\"_blank\" rel=\"noopener\">Click here for my tinkercad circuit &#8211; copy the code from tinkercad into your program.\u00a0<\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>Here&#8217;s sample code to get you started &#8211; copy\/paste everything between the ***** (but don&#8217;t include the stars!):<\/strong><\/span><\/p>\n<p>************************<\/p>\n<p>#include&lt;LiquidCrystal.h&gt;<br \/>\n\/\/https:\/\/www.makerguides.com\/character-lcd-arduino-tutorial\/<br \/>\nLiquidCrystal lcd(12, 11, 5, 4, 3, 2);<br \/>\n\/* Example sketch to create and display custom characters on character LCD with Arduino and LiquidCrystal library. For more info see www.makerguides.com *\/<\/p>\n<p>&nbsp;<\/p>\n<p>\/\/ Make custom characters:<br \/>\nbyte Heart[] = {<br \/>\nB00000,<br \/>\nB01010,<br \/>\nB11111,<br \/>\nB11111,<br \/>\nB01110,<br \/>\nB00100,<br \/>\nB00000,<br \/>\nB00000<br \/>\n};<br \/>\nbyte Bell[] = {<br \/>\nB00100,<br \/>\nB01110,<br \/>\nB01110,<br \/>\nB01110,<br \/>\nB11111,<br \/>\nB00000,<br \/>\nB00100,<br \/>\nB00000<br \/>\n};<br \/>\nbyte Alien[] = {<br \/>\nB11111,<br \/>\nB10101,<br \/>\nB11111,<br \/>\nB11111,<br \/>\nB01110,<br \/>\nB01010,<br \/>\nB11011,<br \/>\nB00000<br \/>\n};<br \/>\nbyte Check[] = {<br \/>\nB00000,<br \/>\nB00001,<br \/>\nB00011,<br \/>\nB10110,<br \/>\nB11100,<br \/>\nB01000,<br \/>\nB00000,<br \/>\nB00000<br \/>\n};<br \/>\nbyte Speaker[] = {<br \/>\nB00001,<br \/>\nB00011,<br \/>\nB01111,<br \/>\nB01111,<br \/>\nB01111,<br \/>\nB00011,<br \/>\nB00001,<br \/>\nB00000<br \/>\n};<br \/>\nbyte Sound[] = {<br \/>\nB00001,<br \/>\nB00011,<br \/>\nB00101,<br \/>\nB01001,<br \/>\nB01001,<br \/>\nB01011,<br \/>\nB11011,<br \/>\nB11000<br \/>\n};<br \/>\nbyte Skull[] = {<br \/>\nB00000,<br \/>\nB01110,<br \/>\nB10101,<br \/>\nB11011,<br \/>\nB01110,<br \/>\nB01110,<br \/>\nB00000,<br \/>\nB00000<br \/>\n};<br \/>\nbyte Lock[] = {<br \/>\nB01110,<br \/>\nB10001,<br \/>\nB10001,<br \/>\nB11111,<br \/>\nB11011,<br \/>\nB11011,<br \/>\nB11111,<br \/>\nB00000<br \/>\n};<\/p>\n<p>void setup() {<br \/>\n\/\/ Specify the LCD&#8217;s number of columns and rows:<br \/>\nlcd.begin(16, 2);<\/p>\n<p>\/\/ Create a new characters:<br \/>\nlcd.createChar(0, Heart);<br \/>\nlcd.createChar(1, Bell);<br \/>\nlcd.createChar(2, Alien);<br \/>\nlcd.createChar(3, Check);<br \/>\nlcd.createChar(4, Speaker);<br \/>\nlcd.createChar(5, Sound);<br \/>\nlcd.createChar(6, Skull);<br \/>\nlcd.createChar(7, Lock);<\/p>\n<p>\/\/ Clears the LCD screen:<br \/>\nlcd.clear();<\/p>\n<p>\/\/ Print a message to the lcd:<br \/>\nlcd.print(&#8220;Custom Character&#8221;);<br \/>\n}<\/p>\n<p>void loop() {<br \/>\n\/\/ Print all the custom characters:<br \/>\nlcd.setCursor(0, 1);<br \/>\nlcd.write(byte(0));<br \/>\nlcd.setCursor(2, 1);<br \/>\nlcd.write(byte(1));<br \/>\nlcd.setCursor(4, 1);<br \/>\nlcd.write(byte(2));<br \/>\nlcd.setCursor(6, 1);<br \/>\nlcd.write(byte(3));<br \/>\nlcd.setCursor(8, 1);<br \/>\nlcd.write(byte(4));<br \/>\nlcd.setCursor(10, 1);<br \/>\nlcd.write(byte(5));<br \/>\nlcd.setCursor(12, 1);<br \/>\nlcd.write(byte(6));<br \/>\nlcd.setCursor(14, 1);<br \/>\nlcd.write(byte(7));<br \/>\n}<\/p>\n<p>***************************<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This will give us a chance to work with a display and special characters.\u00a0 Like these: I have code AND wiring info for you &#8211; keep scrolling. To save you time in wiring your display, follow these steps to make a copy of your first Arduino Display Circuit and Code or click here for wiring &hellip; <a href=\"http:\/\/rodmilstead.com\/pt\/arduino-sample-coderesources\/arduino-display-special-characters\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Arduino Display: Special Characters<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":183,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3738","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/comments?post=3738"}],"version-history":[{"count":5,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3738\/revisions"}],"predecessor-version":[{"id":3779,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3738\/revisions\/3779"}],"up":[{"embeddable":true,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/183"}],"wp:attachment":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=3738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}