0

Eink text misaligned
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Eink text misaligned

by papakujawa on Mon Jan 13, 2020 2:58 am

2.13 inch feather E-ink test displays text diagonally instead of horizontally. The example sketch: Adafruit EDP -> test_text displays text as expected. When the "large block of text" is split into two display.print's the display no longer displays as expected. Please explain what causes this effect and the proper way to display multiple lines.

[code display.setRotation(2);

// large block of text
display.clearBuffer();
display.setTextWrap(true);

display.setCursor(10, 10);
display.setTextSize(1);
display.setTextColor(EPD_BLACK);
display.print("Get as much education as you can. "); // <-- split line here
display.print("Nobody can take that away from you"); // <-- now second line

display.setCursor(50, 70);
display.setTextColor(EPD_RED);
display.print("--Eben Upton");

display.display();][/code]

[img]
Eink%202-13%20feathwing.jpg
[/img]
Attachments
Eink 2-13 feathwing.jpg
Eink 2-13 feathwing.jpg (903.5 KiB) Viewed 23 times

papakujawa
 
Posts: 2
Joined: Mon Jan 13, 2020 2:14 am

Re: Eink text misaligned

by papakujawa on Mon Jan 13, 2020 10:50 pm

Configuration:
2.13 Eink feather connected to WINC1500 running on Metro Express.
Pins:
Code: Select all | TOGGLE FULL SIZE
int cs = 10; // CS pin
int irq = 7; // Irq pin
int rst = 5; // Reset pin
int en = -1; // Enable pin
]


Code: Select all | TOGGLE FULL SIZE
#define EPD_CS      6
#define EPD_DC      8
#define SRAM_CS     3
#define EPD_RESET   2 // can set to -1 and share with microcontroller Reset!
#define EPD_BUSY    -1 // can set to -1 to not use a pin (will wait a fixed delay)


Tried putting the Eink feather on an UNO and it appears to work but no text is displayed.
Will this feather not work on an UNO?

papakujawa
 
Posts: 2
Joined: Mon Jan 13, 2020 2:14 am

Please be positive and constructive with your questions and comments.