From c9c2380332da582364b58b06682c0f8f3f2e7fa6 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sat, 4 Jun 2022 19:45:10 +0200 Subject: [PATCH] Add integer text scaling --- eink/eink | 2 +- eink/main.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/eink/eink b/eink/eink index e62a7ed..827decf 160000 --- a/eink/eink +++ b/eink/eink @@ -1 +1 @@ -Subproject commit e62a7ed49800dfae0337f5d62d12e1fcae8431fb +Subproject commit 827decfcbd19a2e40a76e70992c10af133b60416 diff --git a/eink/main.cpp b/eink/main.cpp index 521ee2a..8fcf08b 100644 --- a/eink/main.cpp +++ b/eink/main.cpp @@ -334,6 +334,12 @@ int main() serial << F("e-Paper update") << F("\r\n"); einkDisplay.update(); + einkDisplay.clear(); + einkDisplay.drawText({0, 0 * 5 * 8}, "Big", eink_t::Color::BLACK, eink_t::Color::WHITE, 5); + einkDisplay.drawText({0, 1 * 5 * 8}, "scale", eink_t::Color::BLACK, eink_t::Color::WHITE, 5); + einkDisplay.drawText({0, 2 * 5 * 8}, "O.o", eink_t::Color::RED, eink_t::Color::WHITE, 5); + einkDisplay.update(); + serial << F("e-Paper sleep") << F("\r\n"); einkDisplay.sleep();