{"id":1908,"date":"2019-08-24T13:31:25","date_gmt":"2019-08-24T20:31:25","guid":{"rendered":"http:\/\/www.donluc.com\/?p=1908"},"modified":"2019-08-24T13:31:25","modified_gmt":"2019-08-24T20:31:25","slug":"project-11-esp32-feather-sharp-display-mk01","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=1908","title":{"rendered":"Project #11: ESP32 Feather &#8211; SHARP Display &#8211; Mk01"},"content":{"rendered":"<p><strong>ESP32 Feather &#8211; SHARP Display<\/strong><\/p>\n<p>&#8212;&#8212;<\/p>\n<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-1908-1\" width=\"720\" height=\"406\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/dl1908mk01.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/dl1908mk01.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/dl1908mk01.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01a.png\" alt=\"Don Luc\" width=\"720\" height=\"597\" class=\"alignnone size-full wp-image-1910\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01a.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01a-300x249.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01b.png\" alt=\"Don Luc\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-1911\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01b.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01b-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01c.png\" alt=\"Don Luc\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-1912\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01c.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01c-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01d.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01d.png\" alt=\"Don Luc\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-1913\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01d.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2019\/08\/DL1908Mk01d-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>Adafruit HUZZAH32 ESP32 Feather Board<\/strong><\/p>\n<p>The HUZZAH32 is our ESP32-based Feather, made with the official WROOM32 module. We packed everything you love about Feathers: built in USB-to-Serial converter, automatic bootloader reset, Lithium Ion\/Polymer charger, and just about all of the GPIOs brought out so you can use it with any of our Feather Wings. <\/p>\n<p>That module nestled in at the end of this Feather contains a dual-core ESP32 chip, 4 MB of SPI Flash, tuned antenna, and all the passives you need to take advantage of this powerful new processor. The ESP32 has both WiFi and Bluetooth Classic\/LE support. That means it&#8217;s perfect for just about any wireless or Internet-connected project.<\/p>\n<p><strong>Adafruit SHARP Memory Display Breakout &#8211; 1.3&#8243; 168&#215;144 Monochrome<\/strong><\/p>\n<p>The 1.3&#8243; 168&#215;144 SHARP Memory LCD display is a cross between an eInk (e-paper) display and an LCD. It has the ultra-low power usage of eInk and the fast-refresh rates of an LCD. This model has a gray background, and pixels show up as black-on-gray for a nice e-reader type display. It does not have a backlight, but it is daylight readable. For dark\/night reading you may need to illuminate the LCD area with external LEDs.<\/p>\n<p><strong>DonLuc1908Mk01<\/strong><\/p>\n<p>1 x Adafruit HUZZAH32 ESP32 Feather<br \/>\n1 x Adafruit SHARP Memory Display<br \/>\n1 x LED Green<br \/>\n1 x 100 Ohm<br \/>\n9 x Jumper Wires 3&#8243; M\/M<br \/>\n1 x Full-Size Breadboard<br \/>\n1 x SparkFun Cerberus USB Cable<\/p>\n<p><strong>Adafruit HUZZAH32 ESP32 Feather<\/strong><\/p>\n<p>LG1 &#8211; Digital 21<br \/>\nSCK &#8211; Digital 13<br \/>\nMOS &#8211; Digital 12<br \/>\nSSD &#8211; Digital 27<br \/>\nGND &#8211; GND<br \/>\nVIN &#8211; +3.3V<\/p>\n<p><strong>DL1908Mk01p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"DL1908Mk01p.ino\">\r\n\/\/ ***** Don Luc Electronics *****\r\n\/\/ Software Version Information\r\n\/\/ Project #11: HUZZAH32 ESP32 Feather - SHARP Display - Mk01\r\n\/\/ 08-01\r\n\/\/ DonLuc1908Mk01p.ino 08-01\r\n\/\/ Adafruit HUZZAH32 ESP32 Feather Board\r\n\/\/ SHARP Display\r\n\/\/ LED Green\r\n\r\n\/\/ include Library Code\r\n#include &lt;Adafruit_SharpMem.h&gt;\r\n#include &lt;Adafruit_GFX.h&gt;\r\n\r\n\/\/ SHARP Memory Display\r\n\/\/ any pins can be used\r\n#define SHARP_SCK  13\r\n#define SHARP_MOSI 12\r\n#define SHARP_SS   27\r\n\/\/ Set the size of the display here, e.g. 144x168!\r\nAdafruit_SharpMem display(SHARP_SCK, SHARP_MOSI, SHARP_SS, 144, 168);\r\n\/\/ The currently-available SHARP Memory Display (144x168 pixels)\r\n\/\/ requires &gt; 4K of microcontroller RAM; it WILL NOT WORK on Arduino Uno\r\n\/\/ or other &lt;4K &quot;classic&quot; devices!\r\n#define BLACK 0\r\n#define WHITE 1\r\nint minorHalfSize; \/\/ 1\/2 of lesser of display width or height\r\n\r\n\/\/ LED Green\r\nint iLEDGreen =  21;          \/\/ LED Green\r\n\r\nvoid loop() {\r\n\r\n  \/\/ iLEDGreen Off\r\n  digitalWrite(iLEDGreen, LOW);\r\n  \/\/ SHARP Memory Display Off\r\n  isDisplayOff();\r\n  delay(2000);\r\n  \/\/ iLEDGreen On\r\n  digitalWrite(iLEDGreen, HIGH);\r\n  \/\/ SHARP Memory Display On\r\n  isDisplayOn();\r\n  delay(2000);\r\n  \r\n}\r\n<\/pre>\n<p><strong>getDisplay.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"getDisplay.ino\">\r\n\/\/ SHARP Memory Display On\r\nvoid isDisplayOn() {\r\n\r\n    \/\/ Clear Display\r\n    display.clearDisplay();\r\n    \/\/ text display tests\r\n    display.setRotation(4);\r\n    \/\/display.clearDisplay();\r\n    display.setTextSize(5);\r\n    display.setTextColor(BLACK);\r\n    display.setCursor(10,25);\r\n    display.println(&quot;LED&quot;);\r\n    display.setCursor(10,75);\r\n    display.println(&quot;On&quot;);\r\n    display.refresh();\r\n\r\n}\r\n\/\/ SHARP Memory Display Off\r\nvoid isDisplayOff() {\r\n\r\n    \/\/ Clear Display\r\n    display.clearDisplay();\r\n    \/\/ text display tests\r\n    display.setRotation(4);\r\n    \/\/display.clearDisplay();\r\n    display.setTextSize(5);\r\n    display.setTextColor(BLACK);\r\n    display.setCursor(10,25);\r\n    display.println(&quot;LED&quot;);\r\n    display.setCursor(10,75);\r\n    display.println(&quot;Off&quot;);\r\n    display.refresh();\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\n\/\/ Setup\r\nvoid setup() {\r\n\r\n  \/\/ SHARP Display start &amp; clear the display\r\n  display.begin();\r\n  display.clearDisplay();\r\n  \r\n  \/\/ Initialize the LED Green\r\n  pinMode(iLEDGreen, OUTPUT);\r\n    \r\n}\r\n<\/pre>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ESP32 Feather &#8211; SHARP Display &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Adafruit HUZZAH32 ESP32 Feather Board The HUZZAH32 is our ESP32-based Feather, made with the official WROOM32 module. We packed everything you love about Feathers: built in USB-to-Serial converter, automatic bootloader reset, Lithium Ion\/Polymer charger, and just about all of the GPIOs brought out so &#8230; <a title=\"Project #11: ESP32 Feather &#8211; SHARP Display &#8211; Mk01\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=1908\" aria-label=\"Read more about Project #11: ESP32 Feather &#8211; SHARP Display &#8211; Mk01\">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":[81,47,38,80,59,5,82,10],"tags":[],"class_list":["post-1908","post","type-post","status-publish","format-standard","hentry","category-esp32-project","category-adafruit","category-digitalelectronics","category-esp32","category-fritzing","category-microcontrollers","category-program-esp32","category-projects"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1908","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=1908"}],"version-history":[{"count":1,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1908\/revisions"}],"predecessor-version":[{"id":1914,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1908\/revisions\/1914"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}