{"id":1399,"date":"2019-07-06T17:39:50","date_gmt":"2019-07-06T17:39:50","guid":{"rendered":"https:\/\/thezhut.com\/?page_id=1399"},"modified":"2019-07-06T17:53:56","modified_gmt":"2019-07-06T17:53:56","slug":"how-to-setup-and-use-the-128x32-oled-display","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=1399","title":{"rendered":"How to setup and use the 128X32 OLED display"},"content":{"rendered":"<h1>On this episode of basic Arduino we will take a look at setting up and using the 128 x 32 OLED display with our Arduino board.<\/h1>\n<h2>Click below for video tutorial:<\/h2>\n<p><a href=\"https:\/\/youtu.be\/uA6DbLMcWhU\">https:\/\/youtu.be\/uA6DbLMcWhU<\/a><\/p>\n<p><a href=\"https:\/\/youtu.be\/uA6DbLMcWhU\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1403\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/128x32_oled_thumbnail_2-300x169.jpg\" alt=\"\" width=\"580\" height=\"327\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/128x32_oled_thumbnail_2-300x169.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/128x32_oled_thumbnail_2-768x432.jpg 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/128x32_oled_thumbnail_2-1024x576.jpg 1024w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/128x32_oled_thumbnail_2.jpg 1280w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff0000;\">Schematic:<\/span><\/h1>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1400\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/oled5-300x162.jpg\" alt=\"\" width=\"580\" height=\"313\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/oled5-300x162.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/oled5-768x414.jpg 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/oled5-1024x552.jpg 1024w, https:\/\/thezhut.com\/wp-content\/uploads\/2019\/07\/oled5.jpg 1548w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<h1><span style=\"color: #ff0000;\"><strong>ARDUINO Code:<\/strong><\/span><\/h1>\n<p>#include &lt;Wire.h&gt;<br \/>\n#include &lt;Adafruit_GFX.h&gt;<br \/>\n#include &lt;Adafruit_SSD1306.h&gt;<br \/>\n#define SCREEN_WIDTH 128 \/\/ OLED display width, in pixels<br \/>\n#define SCREEN_HEIGHT 32 \/\/ OLED display height, in pixels<br \/>\n#define OLED_RESET 4 \/\/ Reset pin # (or -1 if sharing Arduino reset pin)<br \/>\nAdafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &amp;Wire, OLED_RESET);<\/p>\n<p>void setup() {<\/p>\n<p>display.begin(SSD1306_SWITCHCAPVCC, 0x3c);<br \/>\ndisplay.setTextColor(WHITE);<br \/>\ndisplay.clearDisplay();<\/p>\n<p>}<\/p>\n<p>void loop() {<\/p>\n<p>display.setTextSize(4);<br \/>\ndisplay.setCursor(6, 5); \/\/ col, row<br \/>\ndisplay.println(&#8220;Basic&#8221;);<br \/>\ndisplay.display();<br \/>\ndelay(1000);<br \/>\ndisplay.clearDisplay();<br \/>\ndisplay.setTextSize(2);<br \/>\ndisplay.setCursor(20, 15); \/\/ col, row<br \/>\ndisplay.println(&#8220;ARDUINO&#8221;);<br \/>\ndisplay.display();<br \/>\ndelay(1000);<br \/>\ndisplay.clearDisplay();<br \/>\ndisplay.display();<br \/>\ndelay(1000);<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On this episode of basic Arduino we will take a look at setting up and using the 128 x 32 OLED display with our Arduino board. Click below for video tutorial: https:\/\/youtu.be\/uA6DbLMcWhU &nbsp; &nbsp; Schematic: &nbsp; ARDUINO Code: #include &lt;Wire.h&gt; &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=1399\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1382,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-1399","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1399"}],"version-history":[{"count":2,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1399\/revisions"}],"predecessor-version":[{"id":1404,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1399\/revisions\/1404"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1382"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}