-
Notifications
You must be signed in to change notification settings - Fork 2
/
fonts.ino
54 lines (36 loc) · 1.84 KB
/
fonts.ino
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include <heltec-eink-modules.h>
// Find your wiring - https://github.com/todd-herbert/heltec-eink-modules#wiring
// ----------------
#define PIN_DC 2
#define PIN_CS 4
#define PIN_BUSY 5
// "Wireless Paper" boards: skip this, your wiring is pre-set
// Pick your panel - https://github.com/todd-herbert/heltec-eink-modules#supported-displays
// ---------------
// -- SPI Displays --
// DEPG0150BNS810 display( PIN_DC, PIN_CS, PIN_BUSY ); // 1.54" - Mono
// DEPG0154BNS800 display( PIN_DC, PIN_CS, PIN_BUSY); // 1.54" - Mono
// GDEP015OC1 display( PIN_DC, PIN_CS, PIN_BUSY); // 1.54" - Mono
// DEPG0213RWS800 display( PIN_DC, PIN_CS, PIN_BUSY ); // 2.13" - 3 Color Red
// QYEG0213RWS800 display( PIN_DC, PIN_CS, PIN_BUSY ); // 2.13" - 3 Color Red
// DEPG0290BNS75A display( PIN_DC, PIN_CS, PIN_BUSY ); // 2.9" - Mono
// DEPG0290BNS800 display( PIN_DC, PIN_CS, PIN_BUSY ); // 2.9" - Mono
// GDE029A1 display( PIN_DC, PIN_CS, PIN_BUSY ); // 2.9" - Mono
// -- "Wireless Paper" --
// DEPG0213BNS800 display; // (Red Tab)
// LCMEN2R13EFC1 display; // (Green Tab, V1.1)
// DEMO: Using fonts
// ------------------
// Include the font you want from the Fonts folder.
// They take up a bit of memory; maybe don't include them all.
#include "Fonts/FreeSerifBold12pt7b.h"
void setup() {
display.landscape(); // Landscape, text fits better that way (Header PINS to LEFT of the display)
display.setFont( & FreeSerifBold12pt7b ); // Pass (the address of) the font to the library
DRAW (display) {
display.setCursor(10, 50); // Set the (word-processor-like) cursor to the abritrary position of x=10, y=50
display.print("Fancy font.");
}
}
void loop() {
}