{"id":3748,"date":"2021-03-29T19:18:13","date_gmt":"2021-03-29T19:18:13","guid":{"rendered":"http:\/\/rodmilstead.com\/pt\/?page_id=3748"},"modified":"2024-03-18T17:38:58","modified_gmt":"2024-03-18T17:38:58","slug":"arduino-lcd-custom-character-intro","status":"publish","type":"page","link":"https:\/\/rodmilstead.com\/pt\/arduino-sample-coderesources\/arduino-lcd-custom-character-intro\/","title":{"rendered":"Arduino LCD &#8211; Custom Character Intro"},"content":{"rendered":"<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=\"wp-image-3739 alignright\" 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=\"395\" height=\"186\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-12.26.20-PM.png 866w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-25-at-12.26.20-PM-300x141.png 300w, https:\/\/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: 395px) 100vw, 395px\" \/><\/a><\/p>\n<p><strong>BOTTOM LINE:<\/strong> You will make your own custom character and turn it in.\u00a0 <strong>Read on for ALL THE details.<\/strong><\/p>\n<p>There are loads of custom characters available for your Arduino LCD display.<\/p>\n<p>AND\u00a0 you can make your own custom character &#8211; here&#8217;s how.<a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-29-at-12.18.36-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-3750\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/03\/Screen-Shot-2021-03-29-at-12.18.36-PM.png\" alt=\"LCD car\" width=\"180\" height=\"78\" \/><\/a><\/p>\n<ol>\n<li>If you are working in Tinkercad &#8211;<strong> make a copy of your basic Arduino LCD LED Circuit.<\/strong>\u00a0 If you don&#8217;t have a circuit built then <a href=\"http:\/\/rodmilstead.com\/pt\/arduino-sample-coderesources\/arduino-lcd-display\/\" target=\"_blank\" rel=\"noopener\">here&#8217;s the wiring diagram.<\/a><\/li>\n<li><a href=\"https:\/\/docs.google.com\/document\/d\/1tycb7mDbM5zxvZiPeOwGkd75qnhdaJCBWXoHd8G1u2U\/edit?usp=sharing\" target=\"_blank\" rel=\"noopener\">Replace your existing code with my sample code. Sample code here.<\/a><\/li>\n<li>Look at the comments and try to change the position of the character on the LCD display.<\/li>\n<li>Run the code and enjoy the custom character.<\/li>\n<li>OK, now take the code below and add it to your program -if you are using the sample code above it should paste onto line 17:\n<pre class=\" language-cpp\"><code id=\"code-box\" class=\" language-cpp\">byte Arrow<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">{<\/span>\r\n  B00100<span class=\"token punctuation\">,<\/span>\r\n  B01110<span class=\"token punctuation\">,<\/span>\r\n  B11111<span class=\"token punctuation\">,<\/span>\r\n  B00100<span class=\"token punctuation\">,<\/span>\r\n  B00100<span class=\"token punctuation\">,<\/span>\r\n  B00100<span class=\"token punctuation\">,<\/span>\r\n  B00100<span class=\"token punctuation\">,<\/span>\r\n  B00100\r\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/code><\/pre>\n<p>6. We will have to add more lines of code to make this work.\u00a0 In void setup() add this line of code:<\/p>\n<p>lcd.createChar(1, Arrow);<\/li>\n<\/ol>\n<p>7. Add these two lines of code to void loop():<br \/>\nlcd.setCursor(3, 0);<br \/>\nlcd.write(byte(1));<\/p>\n<p>RUN THE CODE<\/p>\n<p><strong>Now you make your own custom character!<\/strong><br \/>\nBUT WAIT&#8230;now you get to make your custom characters. Use the link below for custom character generator that also writes (some of) the code that you need.<\/p>\n<p><a href=\"https:\/\/maxpromer.github.io\/LCD-Character-Creator\/\" target=\"_blank\" rel=\"noopener\">Click here for website that helps you to make your own custom character.<\/a><\/p>\n<p>Create and add two of your own custom characters into your program.\u00a0 <strong>Turn in the Tinkercad share link on Canvas when you are done.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BOTTOM LINE: You will make your own custom character and turn it in.\u00a0 Read on for ALL THE details. There are loads of custom characters available for your Arduino LCD display. AND\u00a0 you can make your own custom character &#8211; here&#8217;s how. If you are working in Tinkercad &#8211; make a copy of your basic &hellip; <a href=\"https:\/\/rodmilstead.com\/pt\/arduino-sample-coderesources\/arduino-lcd-custom-character-intro\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Arduino LCD &#8211; Custom Character Intro<\/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-3748","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/comments?post=3748"}],"version-history":[{"count":12,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3748\/revisions"}],"predecessor-version":[{"id":5466,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3748\/revisions\/5466"}],"up":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/183"}],"wp:attachment":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=3748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}