{"id":168,"date":"2015-08-25T21:31:09","date_gmt":"2015-08-25T21:31:09","guid":{"rendered":"https:\/\/www.cyberia.at\/?page_id=168"},"modified":"2022-09-15T23:32:08","modified_gmt":"2022-09-15T23:32:08","slug":"oled-display","status":"publish","type":"page","link":"https:\/\/www.cyberia.at\/?page_id=168","title":{"rendered":"OLED Screen Test"},"content":{"rendered":"<p>I bought a cheapy 128&#215;64 OLED screen (which is TINY!) and a cheapy clone of the Arduino Nano for a bit of playing around. &nbsp;You can see&nbsp;the setup and the results of the little&nbsp;Sketch I wrote below.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/iZ8PO9bqYQk\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Based on the tutorial and example at&nbsp;<a href=\"https:\/\/www.squirrel-labs.net\/blog\/oled-screen-arduino-uno\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.squirrel-labs.net\/blog\/oled-screen-arduino-uno\/<\/a><\/p>\n<h3>Code:<\/h3>\n<p>#include &lt;IIC_without_ACK.h&gt;<br \/>\n#include &#8220;oledfont.c&#8221; \/\/codetab<\/p>\n<p>#define OLED_SDA 8 \/\/Arduino Digital Pin<br \/>\n#define OLED_SCL 9 \/\/Arduino Digital Pin<\/p>\n<p>IIC_without_ACK outputToScreen(OLED_SDA, OLED_SCL);<br \/>\n\/\/9 &#8212; sda,10 &#8212; scl<\/p>\n<p>int number = 0;<br \/>\nString stringNo;<br \/>\nchar displayNo[21];<\/p>\n<p>void setup()<br \/>\n{<br \/>\noutputToScreen.Initial();<br \/>\noutputToScreen.Fill_Screen(0x00);<br \/>\n}<\/p>\n<p>void loop()<br \/>\n{<br \/>\nstringNo=String(number) + &#8221; seconds.&#8221;; \/\/converting integer into a string + adds the word &#8220;seconds&#8221;<br \/>\nstringNo.toCharArray(displayNo,21); \/\/converts string to char-array<\/p>\n<p>\/\/output to display<br \/>\noutputToScreen.Char_F6x8(0,1,&#8221;https:\/\/www.cyberia.at&#8221;);<br \/>\noutputToScreen.Char_F6x8(0,2,&#8221;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8220;);<br \/>\noutputToScreen.Char_F6x8(0,3,&#8221;&#8221;);<br \/>\noutputToScreen.Char_F6x8(0,4,&#8221;This unit has been&#8221;);<br \/>\noutputToScreen.Char_F6x8(0,5,&#8221;running for&#8221;);<br \/>\noutputToScreen.Char_F6x8(0,6,displayNo);<br \/>\noutputToScreen.Char_F6x8(0,7,&#8221;&#8221;);<\/p>\n<p>number++;<br \/>\ndelay(1000); \/\/1 second delay<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I bought a cheapy 128&#215;64 OLED screen (which is TINY!) and a cheapy clone of the Arduino Nano for a bit of playing around. &nbsp;You can see&nbsp;the setup and the results of the little&nbsp;Sketch I wrote below. Based on the tutorial and example at&nbsp;https:\/\/www.squirrel-labs.net\/blog\/oled-screen-arduino-uno\/ Code: #include &lt;IIC_without_ACK.h&gt; #include &#8220;oledfont.c&#8221; \/\/codetab #define OLED_SDA 8 \/\/Arduino Digital [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":156,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-full-width.php","meta":{"footnotes":""},"class_list":["post-168","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.cyberia.at\/index.php?rest_route=\/wp\/v2\/pages\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyberia.at\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.cyberia.at\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberia.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberia.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168"}],"version-history":[{"count":4,"href":"https:\/\/www.cyberia.at\/index.php?rest_route=\/wp\/v2\/pages\/168\/revisions"}],"predecessor-version":[{"id":196,"href":"https:\/\/www.cyberia.at\/index.php?rest_route=\/wp\/v2\/pages\/168\/revisions\/196"}],"up":[{"embeddable":true,"href":"https:\/\/www.cyberia.at\/index.php?rest_route=\/wp\/v2\/pages\/156"}],"wp:attachment":[{"href":"https:\/\/www.cyberia.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}