Project #11: ESP32 Feather – SHARP Display – Mk01
ESP32 Feather – SHARP Display
——
——
——
——
——
——
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 you can use it with any of our Feather Wings.
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’s perfect for just about any wireless or Internet-connected project.
Adafruit SHARP Memory Display Breakout – 1.3″ 168×144 Monochrome
The 1.3″ 168×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.
DonLuc1908Mk01
1 x Adafruit HUZZAH32 ESP32 Feather
1 x Adafruit SHARP Memory Display
1 x LED Green
1 x 100 Ohm
9 x Jumper Wires 3″ M/M
1 x Full-Size Breadboard
1 x SparkFun Cerberus USB Cable
Adafruit HUZZAH32 ESP32 Feather
LG1 – Digital 21
SCK – Digital 13
MOS – Digital 12
SSD – Digital 27
GND – GND
VIN – +3.3V
DL1908Mk01p.ino
// ***** Don Luc Electronics ***** // Software Version Information // Project #11: HUZZAH32 ESP32 Feather - SHARP Display - Mk01 // 08-01 // DonLuc1908Mk01p.ino 08-01 // Adafruit HUZZAH32 ESP32 Feather Board // SHARP Display // LED Green // include Library Code #include <Adafruit_SharpMem.h> #include <Adafruit_GFX.h> // SHARP Memory Display // any pins can be used #define SHARP_SCK 13 #define SHARP_MOSI 12 #define SHARP_SS 27 // Set the size of the display here, e.g. 144x168! Adafruit_SharpMem display(SHARP_SCK, SHARP_MOSI, SHARP_SS, 144, 168); // The currently-available SHARP Memory Display (144x168 pixels) // requires > 4K of microcontroller RAM; it WILL NOT WORK on Arduino Uno // or other <4K "classic" devices! #define BLACK 0 #define WHITE 1 int minorHalfSize; // 1/2 of lesser of display width or height // LED Green int iLEDGreen = 21; // LED Green void loop() { // iLEDGreen Off digitalWrite(iLEDGreen, LOW); // SHARP Memory Display Off isDisplayOff(); delay(2000); // iLEDGreen On digitalWrite(iLEDGreen, HIGH); // SHARP Memory Display On isDisplayOn(); delay(2000); }
getDisplay.ino
// SHARP Memory Display On void isDisplayOn() { // Clear Display display.clearDisplay(); // text display tests display.setRotation(4); //display.clearDisplay(); display.setTextSize(5); display.setTextColor(BLACK); display.setCursor(10,25); display.println("LED"); display.setCursor(10,75); display.println("On"); display.refresh(); } // SHARP Memory Display Off void isDisplayOff() { // Clear Display display.clearDisplay(); // text display tests display.setRotation(4); //display.clearDisplay(); display.setTextSize(5); display.setTextColor(BLACK); display.setCursor(10,25); display.println("LED"); display.setCursor(10,75); display.println("Off"); display.refresh(); }
setup.ino
// Setup void setup() { // SHARP Display start & clear the display display.begin(); display.clearDisplay(); // Initialize the LED Green pinMode(iLEDGreen, OUTPUT); }
Don Luc
Leave a Reply