From 3c9398ca336059897e04f2db977bf42f6ff710d8 Mon Sep 17 00:00:00 2001 From: nitko12 Date: Thu, 24 Sep 2020 11:47:39 +0200 Subject: [PATCH] Fix font not loading. --- .../Inkplate_SD_pictures/Inkplate_SD_pictures.ino | 4 ++-- .../Inkplate-basic_custom_font.ino | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/Advanced Inkplate Features/Inkplate_SD_pictures/Inkplate_SD_pictures.ino b/examples/Advanced Inkplate Features/Inkplate_SD_pictures/Inkplate_SD_pictures.ino index e77bebe..18ce309 100644 --- a/examples/Advanced Inkplate Features/Inkplate_SD_pictures/Inkplate_SD_pictures.ino +++ b/examples/Advanced Inkplate Features/Inkplate_SD_pictures/Inkplate_SD_pictures.ino @@ -9,11 +9,11 @@ To work with SD card on Inkplate, you will need to add one extra library. Download and install it from here: https://github.com/e-radionicacom/Inkplate-6-SDFat-Arduino-Library - You can open .bmp files that have color depth of 1 bit (BW bitmap), 4 bit, 8 bit and + You can open .bmp, .jpeg or .png files that have color depth of 1 bit (BW bitmap), 4 bit, 8 bit and 24 bit AND have resoluton smaller than 800x600 or otherwise it won't fit on screen. Format your SD card in standard FAT fileformat. - This example will show you how you can read .bmp files (pictures) from SD card and + This example will show you how you can read .bmp and .jpeg files (pictures) from SD card and display that image on e-paper display. Want to learn more about Inkplate? Visit www.inkplate.io diff --git a/examples/Basic Inkplate Functionality/Inkplate-basic_custom_font/Inkplate-basic_custom_font.ino b/examples/Basic Inkplate Functionality/Inkplate-basic_custom_font/Inkplate-basic_custom_font.ino index 301021a..32a15ea 100644 --- a/examples/Basic Inkplate Functionality/Inkplate-basic_custom_font/Inkplate-basic_custom_font.ino +++ b/examples/Basic Inkplate Functionality/Inkplate-basic_custom_font/Inkplate-basic_custom_font.ino @@ -19,9 +19,11 @@ 15 July 2020 by e-radionica.com */ +#include "Inkplate.h" //Include Inkplate library to the sketch + #include "DSEG14Classic_Regular20pt7b.h" //Include second font -#include "Inkplate.h" //Include Inkplate library to the sketch #include "Not_Just_Groovy20pt7b.h" //Include first .h font file to the sketch + Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1-bit mode (BW) void setup() @@ -53,4 +55,4 @@ void setup() void loop() { // Nothing... -} +} \ No newline at end of file