aboutsummaryrefslogtreecommitdiff
path: root/laser-tag software/text.h
diff options
context:
space:
mode:
authorWanderingGlitch <wandering.glitch+git@gmail.com>2016-07-01 19:38:46 -0500
committerWanderingGlitch <wandering.glitch+git@gmail.com>2016-07-01 20:36:50 -0500
commit16c3423c520e588f54bbe8e145388ef1ea8c2ed2 (patch)
tree295cc2c13a716a4d46d6d985b8562e0b171c674b /laser-tag software/text.h
parent6a62efabb0b048a6f2f1d74870fccbd634e281d3 (diff)
Adding the unoptimized text drawing code
Diffstat (limited to 'laser-tag software/text.h')
-rw-r--r--laser-tag software/text.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/laser-tag software/text.h b/laser-tag software/text.h
new file mode 100644
index 0000000..a1363d1
--- /dev/null
+++ b/laser-tag software/text.h
@@ -0,0 +1,19 @@
+#ifndef _TEXT_H_
+#define _TEXT_H_
+
+#include <stdint.h>
+
+#define EPAPER_WIDTH 232
+#define EPAPER_HEIGHT 128
+
+#ifndef GLITCHDEBUG
+#define printf(...)
+#endif
+
+#ifndef NULL
+#define NULL ((void*)0)
+#endif
+
+uint8_t text_to_image(const char* ptext, uint8_t length, uint8_t *pimage, uint8_t offset_x, uint8_t offset_y, uint8_t upper_x, uint8_t upper_y);
+
+#endif