losungepaper/losungepaper.ino

38 lines
1.2 KiB
Arduino
Raw Normal View History

2022-08-21 08:48:54 +00:00
#include "epd2in7.h"
#include "epdpaint.h"
// b/w e-Paper
#define COLORED 0
#define UNCOLORED 1
Epd epd;
// style of the frame shown
2022-08-21 15:04:44 +00:00
sFONT TITLE_FONT = Font20;
2022-08-21 08:48:54 +00:00
char TITLE_TEXT[] = "Losung heute";
2022-08-21 15:04:44 +00:00
sFONT TEXT_FONT = Font12; // for the daily text
int TEXT_WIDTH = 168; // width of the box around the text; should be a multiple of the width of the font (eg. Font8 => multiple of 8)
int TEXT_PADDING_TOP = 40;
int TEXT_PADDING_BETWEEN_BLOCKS = 20; // pixels between the lines
int TEXT_PADDING_BETWEEN_LINES = 1; // pixels between the lines
sFONT SOURCE_FONT = Font8; // for the position in bible
2022-08-21 08:48:54 +00:00
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("[INFO] Initializing e-Paper...");
if (epd.Init() != 0) {
Serial.println("[FATAL] Failed initializing e-Paper; Exiting...");
return;
}
Serial.println("[INFO] Initialized e-Paper!");
2022-08-21 15:04:44 +00:00
String losung = "Gott spricht: Ich will für Israel wie der Tau sein, dass es blüht wie eine Lilie.";
String lehrtext = "Ich bin der Weinstock, ihr seid die Reben. Wer in mir bleibt und ich in ihm, der bringt viel Frucht; denn ohne mich könnt ihr nichts tun.";
showDailyText(losung, lehrtext, "Hosea 14,6", "Johannes 15,5");
2022-08-21 08:48:54 +00:00
}
void loop() {
}