Close

[Trinket sensing] SHARP Memory Display - 1.3" 96x96 Monochrome

A project log for Home automation - Trinket Sensing

TJTJ 06/08/2015 at 09:440 Comments

Buy

https://www.adafruit.com/products/1393

Learn

https://learn.adafruit.com/adafruit-sharp-memory-display-breakout

(Link looks down today - http://www.downforeveryoneorjustme.com/learn.adafruit.com/adafruit-sharp-memory-display-breakout)

C++ Library

You need the Sharp and GFX libraries from Adafruit

https://github.com/adafruit/Adafruit_SHARP_Memory_Display

https://github.com/adafruit/Adafruit-GFX-Library

Hardware

Vin3.3 V
GndGnd
CLKTrinket Pin 9
DITrinket Pin 10
CSTrinket Pin 4

Arduino code

#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SharpMem.h>

#define BLACK 0
#define WHITE 1

// any pins can be used
#define SHARP_CLK 9
#define SHARP_DI  10
#define SHARP_CS  4

Adafruit_SharpMem display(SHARP_CLK, SHARP_DI, SHARP_CS);

void setup(void) {

}

void loop(void) {
  display.clearDisplay();
  display.setTextSize(1);
  display.setTextColor(BLACK);
  display.setCursor(0,0);
  display.setTextColor(WHITE, BLACK); 
  display.print("It works !");
}

Discussions