0

2.13" diagonal e-ink display font change
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

2.13" diagonal e-ink display font change

by deryaakitis on Fri Aug 09, 2019 4:31 pm

Is it possible to change the font & size of the writing on the displaying screen? if it is, how?

deryaakitis
 
Posts: 14
Joined: Thu Aug 08, 2019 12:54 pm

Re: 2.13" diagonal e-ink display font change

by adafruit_support_mike on Sat Aug 10, 2019 12:04 am

The code that talks to the display is based on our GFX library, which does let you use different fonts:

https://learn.adafruit.com/adafruit-gfx ... sing-fonts

adafruit_support_mike
 
Posts: 58843
Joined: Thu Feb 11, 2010 2:51 pm

Re: 2.13" diagonal e-ink display font change

by deryaakitis on Mon Aug 12, 2019 5:49 pm

It's written as the library can be used for Ardunio. I'm programming through Circuitpython, and also I am using 2.13" diagonal e-ink display with Metro M4 Express. Is this GFX library still can be used?

deryaakitis
 
Posts: 14
Joined: Thu Aug 08, 2019 12:54 pm

Re: 2.13" diagonal e-ink display font change

by adafruit_support_mike on Tue Aug 13, 2019 1:06 am

CircuitPython uses the Adafruit_framebuf class, which does read its font information from a file:

https://github.com/adafruit/Adafruit_Ci ... #L342-L409

According to the comments, only fonts 8 pixels high are currently supported.

adafruit_support_mike
 
Posts: 58843
Joined: Thu Feb 11, 2010 2:51 pm

Re: 2.13" diagonal e-ink display font change

by deryaakitis on Wed Aug 21, 2019 1:08 pm

Hi, I'm trying to use the gfx library on a different project now. I added GFX library through Arduino, and downloaded TFTLCD library from Github. Do you have any idea about what is wrong?

I added these lines to my code:

#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_TFTLCD.h> // Hardware-specific library
#include <Fonts/FreeMonoBoldOblique12pt7b.h>

I am getting a series of errors starting with these one:

In file included from /Users/derya/Documents/Arduino/libraries/TFTLCD-Library-master/Adafruit_TFTLCD.cpp:19:0:
/Users/derya/Documents/Arduino/libraries/TFTLCD-Library-master/pin_magic.h:350:3: error: #error "Board type unsupported / not recognized"
#error "Board type unsupported / not recognized"
^~~~~
/Users/derya/Documents/Arduino/libraries/TFTLCD-Library-master/Adafruit_TFTLCD.cpp: In constructor 'Adafruit_TFTLCD::Adafruit_TFTLCD(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
/Users/derya/Documents/Arduino/libraries/TFTLCD-Library-master/Adafruit_TFTLCD.cpp:44:3: error: '_reset' was not declared in this scope
_reset = reset;
^~~~~~
/Users/derya/Documents/Arduino/libraries/TFTLCD-Library-master/Adafruit_TFTLCD.cpp:44:3: note: suggested alternative: 'reset'
_reset = reset;
^~~~~~
reset
/Users/derya/Documents/Arduino/libraries/TFTLCD-Library-master/Adafruit_TFTLCD.cpp:57:3: error: 'csPinSet' was not declared in this scope
csPinSet = digitalPinToBitMask(cs);
^~~~~~~~

deryaakitis
 
Posts: 14
Joined: Thu Aug 08, 2019 12:54 pm

Re: 2.13" diagonal e-ink display font change

by adafruit_support_mike on Thu Aug 22, 2019 1:07 am

What microcontroller/development board are you using?

adafruit_support_mike
 
Posts: 58843
Joined: Thu Feb 11, 2010 2:51 pm

Re: 2.13" diagonal e-ink display font change

by deryaakitis on Thu Aug 22, 2019 12:00 pm

I'm using nrf52832 Feather, connected with 2.13" diagonal eInk display on Arduino.

deryaakitis
 
Posts: 14
Joined: Thu Aug 08, 2019 12:54 pm

Re: 2.13" diagonal e-ink display font change

by adafruit_support_mike on Sat Aug 24, 2019 12:18 am

It looks like you're using one of our older TFT libraries, which wouldn't work with an e-ink display even if it did compile.

The one you want is the Adafruit_EPD library:

https://github.com/adafruit/Adafruit_EPD

The tutorial has more information:

https://learn.adafruit.com/adafruit-ein ... duino-code

adafruit_support_mike
 
Posts: 58843
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.