blob: 74a2a707d17c9b48dfaf4c299fe41fba5a104f1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include "sharp/Adafruit_SharpMem.h"
#define SHARP_SCK 12
#define SHARP_MOSI 13
#define SHARP_SS 6
Adafruit_SharpMem display(SHARP_SCK, SHARP_MOSI, SHARP_SS, 144, 168);
#define BLACK 0
#define WHITE 1
void sharpInit(void)
{
display.begin();
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(BLACK);
display.setCursor(0, 0);
display.println("Hello!");
}
void sharpRefresh(unsigned int pause)
{
display.refresh();
delay(pause);
}
|