{"id":1534,"date":"2018-04-26T11:18:10","date_gmt":"2018-04-26T18:18:10","guid":{"rendered":"http:\/\/www.donluc.com\/?p=1534"},"modified":"2018-04-26T11:18:10","modified_gmt":"2018-04-26T18:18:10","slug":"project-6-microview-mk05","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=1534","title":{"rendered":"Project #6: MicroView &#8211; Mk05"},"content":{"rendered":"<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09b.png\" alt=\"\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-1535\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09b.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09b-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09c.png\" alt=\"\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-1536\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09c.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09c-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09d.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09d.png\" alt=\"\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-1538\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09d.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09d-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09e.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09e.png\" alt=\"\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-1539\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09e.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09e-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09f.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09f.png\" alt=\"\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-1540\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09f.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09f-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09g.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09g.png\" alt=\"\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-1541\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09g.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09g-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-1534-1\" width=\"720\" height=\"406\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2018\/04\/DonLuc1804Mk09.mp4<\/a><\/video><\/div>\n<p><strong>MicroView<\/strong><br \/>\n<strong>Project #6 \u2013 Mk05<\/strong><\/p>\n<p><strong>4 x LED<\/strong><\/p>\n<p>1 x MicroView<br \/>\n1 x MicroView &#8211; USB Programmer<br \/>\n1 X Resistor 620 Ohm<br \/>\n1 X Resistor 5 Ohm<br \/>\n1 X Resistor 250 Ohm<br \/>\n1 X Resistor 200 Ohm<br \/>\n1 X 3mm Low Current Red LED &#8211; WP710A10LSRD<br \/>\n1 x 3mm Low Current Yellow LED &#8211; WP710A10LYD<br \/>\n1 x 3mm Low Current Green LED &#8211; WP710A10LGD<br \/>\n1 x 3mm Low Current Red LED &#8211; WP710A10LID<br \/>\n9 x Jumper Wires 3&#8243; M\/M<br \/>\n1 x Half-Size Breadboard<\/p>\n<p>08 pin &#8211; GND<br \/>\n14 pin &#8211; 6<br \/>\n13 pin &#8211; 5<br \/>\n12 pin &#8211; 3<br \/>\n11 pin &#8211; 2<\/p>\n<p><strong>DonLuc1804Mk09a.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"DonLuc1804Mk09a.ino\">\r\n\/\/ ***** Don Luc *****\r\n\/\/ Software Version Information\r\n\/\/ 5.01\r\n\/\/ DonLuc1804Mk06 5.01\r\n\/\/ MicroView\r\n\/\/ 4 x LED\r\n\r\n\/\/ include the library code:\r\n#include &lt;MicroView.h&gt;\r\n\r\n\/\/ 4 x LED\r\nint ledPinR = 2;   \/\/ select the pin for the LED Red - WP710A10LSRD\r\nint ledPinY = 3;   \/\/ select the pin for the LED Yellow - WP710A10LYD\r\nint ledPinG = 5;   \/\/ select the pin for the LED Green - WP710A10LGD\r\nint ledPinR1 = 6;   \/\/ select the pin for the LED Red - WP710A10LID\r\n\r\nvoid loop() {\r\n\r\n  \/\/ 4 x LED\r\n  isLED();\r\n\r\n  uView.clear(PAGE);\r\n  \r\n}\r\n<\/pre>\n<p><strong>getLED.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"getLED.ino\">\r\nvoid isLED(){\r\n\r\n  digitalWrite(ledPinR, HIGH);  \/\/ turn the ledPinR on\r\n  digitalWrite(ledPinY, HIGH);  \/\/ turn the ledPinY on\r\n  digitalWrite(ledPinG, HIGH);  \/\/ turn the ledPinG on\r\n  digitalWrite(ledPinR1, HIGH);  \/\/ turn the ledPinR1 on\r\n\r\n  uView.setFontType(1);  \/\/ set font type 1: Numbers and letters. 7 characters per line (3 lines)\r\n  uView.setCursor(0,20);\r\n  uView.print( &quot;   On&quot; );\r\n  uView.display();\r\n\r\n  delay(5000);\r\n  uView.clear(PAGE); \r\n\r\n  digitalWrite(ledPinR, LOW);  \/\/ turn the ledPinR off\r\n  digitalWrite(ledPinY, LOW);  \/\/ turn the ledPinY off\r\n  digitalWrite(ledPinG, LOW);  \/\/ turn the ledPinG off\r\n  digitalWrite(ledPinR1, LOW);  \/\/ turn the ledPinR1 off\r\n\r\n  uView.setCursor(0,20);\r\n  uView.print( &quot;  Off&quot; );\r\n  uView.display();\r\n\r\n  delay(5000);\r\n  uView.clear(PAGE); \r\n\r\n  digitalWrite(ledPinR, HIGH);  \/\/ turn the ledPinR on\r\n\r\n  uView.setFontType(0);  \/\/ set font type 0: Numbers and letters. 10 characters per line (6 lines)\r\n  uView.setCursor(0,20);\r\n  uView.print( &quot;PinR=On&quot; );\r\n  uView.display();\r\n\r\n  delay(3000);\r\n  uView.clear(PAGE); \r\n\r\n  digitalWrite(ledPinR, LOW);  \/\/ turn the ledPinR off\r\n  digitalWrite(ledPinY, HIGH);  \/\/ turn the ledPinY on\r\n  \r\n  uView.setCursor(0,10);\r\n  uView.print( &quot;PinR=Off&quot; );\r\n  uView.display();\r\n \r\n  uView.setCursor(0,30);\r\n  uView.print( &quot;PinY=On&quot; );\r\n  uView.display();\r\n  \r\n  delay(3000);\r\n  uView.clear(PAGE); \r\n\r\n  digitalWrite(ledPinY, LOW);  \/\/ turn the ledPinY off\r\n  digitalWrite(ledPinG, HIGH);  \/\/ turn the ledPinG on\r\n  \r\n  uView.setCursor(0,10);\r\n  uView.print( &quot;PinY=Off&quot; );\r\n  uView.display();\r\n\r\n  uView.setCursor(0,30);\r\n  uView.print( &quot;PinG=On&quot; );\r\n  uView.display();\r\n  \r\n  delay(3000);\r\n  uView.clear(PAGE); \r\n\r\n  digitalWrite(ledPinG, LOW);  \/\/ turn the ledPinG off\r\n  digitalWrite(ledPinR1, HIGH);  \/\/ turn the ledPinR1 on\r\n  \r\n  uView.setCursor(0,10);\r\n  uView.print( &quot;PinG=Off&quot; );\r\n  uView.display();\r\n\r\n  uView.setCursor(0,30);\r\n  uView.print( &quot;PinR1=On&quot; );\r\n  uView.display();\r\n  \r\n  delay(3000);\r\n  uView.clear(PAGE); \r\n\r\n  digitalWrite(ledPinR, LOW);  \/\/ turn the ledPinR off\r\n  digitalWrite(ledPinY, LOW);  \/\/ turn the ledPinY off\r\n  digitalWrite(ledPinG, LOW);  \/\/ turn the ledPinG off\r\n  digitalWrite(ledPinR1, LOW);  \/\/ turn the ledPinR1 off\r\n\r\n  uView.setFontType(1); \/\/ set font type 1: Numbers and letters. 7 characters per line (3 lines)\r\n  uView.setCursor(0,20);\r\n  uView.print( &quot;Off&quot; );\r\n  uView.display();\r\n\r\n  delay(3000);\r\n  uView.clear(PAGE);\r\n\r\n}\r\n<\/pre>\n<p><strong>setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"setup.ino\">\r\nvoid setup() {\r\n\r\n  uView.begin();       \/\/ begin of MicroView\r\n  uView.clear(ALL);    \/\/ erase hardware memory inside the OLED controller\r\n  uView.display();     \/\/ display the content in the buffer memory, by default it is the MicroView logo\r\n  delay(1000);\r\n  uView.clear(PAGE);   \/\/ erase the memory buffer, when next uView.display() is called, the OLED will be cleared.\r\n\r\n  uView.setFontType(1); \/\/ set font type 1: Numbers and letters. 7 characters per line (3 lines)\r\n  uView.setCursor(0,20);\r\n  uView.print(&quot;Don Luc&quot;);\r\n  uView.display();\r\n  delay(5000);\r\n\r\n  uView.clear(PAGE);     \/\/ erase the memory buffer, when next uView.display() is called, the OLED will be cleared.\r\n\r\n  uView.setFontType(1);  \/\/ set font type 1: Numbers and letters. 7 characters per line (3 lines)\r\n  uView.setCursor(0,20);\r\n  uView.print(&quot;4 x LED&quot;);\r\n  uView.display();\r\n  delay(5000);\r\n  \r\n  uView.clear(PAGE);\r\n\r\n  \/\/ ledPinR, ledPinY, ledPinG, ledPinR1\r\n  pinMode(ledPinR, OUTPUT);\r\n  pinMode(ledPinY, OUTPUT);\r\n  pinMode(ledPinG, OUTPUT);\r\n  pinMode(ledPinR1, OUTPUT);  \r\n  \r\n}\r\n<\/pre>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MicroView Project #6 \u2013 Mk05 4 x LED 1 x MicroView 1 x MicroView &#8211; USB Programmer 1 X Resistor 620 Ohm 1 X Resistor 5 Ohm 1 X Resistor 250 Ohm 1 X Resistor 200 Ohm 1 X 3mm Low Current Red LED &#8211; WP710A10LSRD 1 x 3mm Low Current Yellow LED &#8211; WP710A10LYD &#8230; <a title=\"Project #6: MicroView &#8211; Mk05\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=1534\" aria-label=\"Read more about Project #6: MicroView &#8211; Mk05\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70,50,38,5,58,10,43],"tags":[],"class_list":["post-1534","post","type-post","status-publish","format-standard","hentry","category-microview","category-arduino","category-digitalelectronics","category-microcontrollers","category-arduino-programming","category-projects","category-sparkfun"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1534"}],"version-history":[{"count":5,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1534\/revisions"}],"predecessor-version":[{"id":3997,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1534\/revisions\/3997"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}