Here is the Code that I used to test the displays. First for the GxEPD2_150_BN
#include <GxEPD2_BW.h>
#include <Fonts/FreeMonoBold9pt7b.h>
#include <SPI.h>
#define misoPin 13
#define mosiPin 12
#define clkPin 14
#define csPin 15
#define EPD_BUSY 33
#define EPD_RST 25
#define EPD_DC 27
#define EPD_CS 26
/*
GxEPD2_BW<GxEPD2_154_D67, GxEPD2_154_D67::HEIGHT> display(
GxEPD2_154_D67(EPD_CS, EPD_DC, EPD_RST, EPD_BUSY)
);
*/
GxEPD2_BW<GxEPD2_150_BN, GxEPD2_150_BN::HEIGHT> display(
GxEPD2_150_BN(EPD_CS, EPD_DC, EPD_RST, EPD_BUSY)
);
void setup() {
Serial.begin(115200);
SPI.begin(clkPin, misoPin, mosiPin, csPin); //CLK, MISO, MOSI, CS
display.init(115200, true, 2, false);
display.setRotation(1);
display.setFont(&FreeMonoBold9pt7b);
display.setTextColor(GxEPD_BLACK);
display.setFullWindow();
display.firstPage();
do
{
display.fillScreen(GxEPD_WHITE);
display.setCursor(20, 20);
display.print("HelloWorld");
}
while (display.nextPage());
}
void loop() {
// put your main code here, to run repeatedly:
}
here is the output:
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13864
load:0x40080400,len:3608
entry 0x400805f0
_PowerOn : 93999
_Update_Full : 4227000
_PowerOff : 140000
and here for the GxEPD2_154_D67
#include <GxEPD2_BW.h>
#include <Fonts/FreeMonoBold9pt7b.h>
#include <SPI.h>
#define misoPin 13
#define mosiPin 12
#define clkPin 14
#define csPin 15
#define EPD_BUSY 33
#define EPD_RST 25
#define EPD_DC 27
#define EPD_CS 26
GxEPD2_BW<GxEPD2_154_D67, GxEPD2_154_D67::HEIGHT> display(
GxEPD2_154_D67(EPD_CS, EPD_DC, EPD_RST, EPD_BUSY)
);
/*
GxEPD2_BW<GxEPD2_150_BN, GxEPD2_150_BN::HEIGHT> display(
GxEPD2_150_BN(EPD_CS, EPD_DC, EPD_RST, EPD_BUSY)
);
*/
void setup() {
Serial.begin(115200);
SPI.begin(clkPin, misoPin, mosiPin, csPin); //CLK, MISO, MOSI, CS
display.init(115200, true, 2, false);
display.setRotation(1);
display.setFont(&FreeMonoBold9pt7b);
display.setTextColor(GxEPD_BLACK);
display.setFullWindow();
display.firstPage();
do
{
display.fillScreen(GxEPD_WHITE);
display.setCursor(20, 20);
display.print("HelloWorld");
}
while (display.nextPage());
}
void loop() {
// put your main code here, to run repeatedly:
}
and here the output:
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13864
load:0x40080400,len:3608
entry 0x400805f0
_PowerOn : 95000
_Update_Full : 4227000
_PowerOff : 140000
Both versions of the code result in the display looking the same. Here is a picture of GxEPD2_154_D67 code running on the waveshare display:
And here the same code on the GDEH0154D67
I hope I provided everything you need. Thanks