Skip to content

Commit 39621c2

Browse files
committed
Version 3.1.0
- added support for GDEH0154D67 1.54" b/w, replacement for GDEP015OC1 - added example GxEPD_MinimumExample, e.g. for memory footprint
1 parent 07e41a8 commit 39621c2

File tree

15 files changed

+3987
-14
lines changed

15 files changed

+3987
-14
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
### issues:
99
- please post only issues that are real issues with this library!
1010
- please add all information according to the issue template
11+
- issues are disabled because above rules were not obeyed
1112

1213
### pull requests:
13-
- in general, I will not merge pull request
14-
- pull requests are useful to inform users and me about interesting additions in forked repositories
15-
- I will close or remove pull request at will
14+
- I will not merge pull request. There may be exceptions to this. I may add (modified) fixes.
15+
- pull requests are useful to inform users and me about interesting additions in forked repositories.
16+
- I will close or remove pull request at will.
1617

1718
## Thank you for all the inspiration I get for this library.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ A simple E-Paper display library with common base class and separate IO class fo
3535
- Good Dispay ePaper for Arduino : https://forum.arduino.cc/index.php?topic=436411.0
3636

3737
### Supported SPI e-paper panels from Good Display:
38-
- GDEP015OC1 1.54" b/w
38+
- GDEP015OC1 1.54" b/w 200x200
39+
- GDEH0154D67 1.54" b/w 200x200 replacement for GDEP015OC1
3940
- GDEW0154Z04 1.54" b/w/r 200x200
4041
- GDEW0154Z17 1.54" b/w/r 152x152
4142
- GDE0213B1 2.13" b/w
@@ -65,7 +66,10 @@ A simple E-Paper display library with common base class and separate IO class fo
6566

6667
### for pin mapping suggestions see ConnectingHardware.md
6768

68-
### Version 3.0.9
69+
### Version 3.1.0
70+
- added support for GDEH0154D67 1.54" b/w, replacement for GDEP015OC1
71+
- added example GxEPD_MinimumExample, e.g. for memory footprint
72+
#### Version 3.0.9
6973
- fixed BMP handling, e.g. for BMPs created by ImageMagick
7074
- see also Arduino Forum Topic https://forum.arduino.cc/index.php?topic=642343.0
7175
- added support for GDEW075T7 7.5" b/w 800x480

examples/GxEPD_Example/GxEPD_Example.ino

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
// select the display class to use, only one
4545
//#include <GxGDEP015OC1/GxGDEP015OC1.h> // 1.54" b/w
46+
//#include <GxGDEH0154D67/GxGDEH0154D67.h> // 1.54" b/w
4647
//#include <GxGDEW0154Z04/GxGDEW0154Z04.h> // 1.54" b/w/r 200x200
4748
//#include <GxGDEW0154Z17/GxGDEW0154Z17.h> // 1.54" b/w/r 152x152
4849
//#include <GxGDEW0213I5F/GxGDEW0213I5F.h> // 2.13" b/w 104x212 flexible
@@ -199,6 +200,21 @@ void showBitmapExample()
199200
}
200201
#endif
201202

203+
#if defined(_GxGDEH0154D67_H_)
204+
void showBitmapExample()
205+
{
206+
display.drawExampleBitmap(BitmapExample1, sizeof(BitmapExample1));
207+
delay(2000);
208+
display.drawExampleBitmap(BitmapExample2, sizeof(BitmapExample2));
209+
delay(5000);
210+
display.fillScreen(GxEPD_WHITE);
211+
display.drawExampleBitmap(BitmapExample1, 0, 0, GxEPD_WIDTH, GxEPD_HEIGHT, GxEPD_BLACK);
212+
display.update();
213+
delay(5000);
214+
showBoat();
215+
}
216+
#endif
217+
202218
#if defined(_GxGDEW0154Z04_H_)
203219
#define HAS_RED_COLOR
204220
void showBitmapExample()
@@ -657,7 +673,7 @@ void drawCornerTest()
657673
display.setRotation(rotation); // restore
658674
}
659675

660-
#if defined(_GxGDEP015OC1_H_) || defined(_GxGDE0213B1_H_) || defined(_GxGDEH0213B72_H_) || defined(_GxGDEH0213B73_H_)|| defined(_GxGDEH029A1_H_)
676+
#if defined(_GxGDEP015OC1_H_) || defined(_GxGDEH0154D67_H_) || defined(_GxGDE0213B1_H_) || defined(_GxGDEH0213B72_H_) || defined(_GxGDEH0213B73_H_)|| defined(_GxGDEH029A1_H_)
661677
#include "IMG_0001.h"
662678
void showBoat()
663679
{
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// GxEPD_MinimumExample by Jean-Marc Zingg
2+
3+
#include <GxEPD.h>
4+
5+
// select the display class to use, only one, copy from GxEPD_Example
6+
#include <GxGDEH0154D67/GxGDEH0154D67.h> // 1.54" b/w
7+
8+
#include <GxIO/GxIO_SPI/GxIO_SPI.h>
9+
#include <GxIO/GxIO.h>
10+
11+
// constructor for AVR Arduino, copy from GxEPD_Example else
12+
GxIO_Class io(SPI, /*CS=*/ SS, /*DC=*/ 8, /*RST=*/ 9); // arbitrary selection of 8, 9 selected for default of GxEPD_Class
13+
GxEPD_Class display(io, /*RST=*/ 9, /*BUSY=*/ 7); // default selection of (9), 7
14+
15+
void setup()
16+
{
17+
display.init();
18+
display.eraseDisplay();
19+
// comment out next line to have no or minimal Adafruit_GFX code
20+
display.drawPaged(drawHelloWorld); // version for AVR using paged drawing, works also on other processors
21+
}
22+
23+
void drawHelloWorld()
24+
{
25+
display.setTextColor(GxEPD_BLACK);
26+
display.print("Hello World!");
27+
}
28+
29+
void loop() {};

examples/GxEPD_MultiDisplayExample/GxEPD_MultiDisplayExample.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
// select the display classes to use
3232
#include <GxGDEP015OC1/GxGDEP015OC1.h> // 1.54" b/w
33+
#include <GxGDEH0154D67/GxGDEH0154D67.h> // 1.54" b/w
3334
#include <GxGDEW0154Z04/GxGDEW0154Z04.h> // 1.54" b/w/r 200x200
3435
#include <GxGDEW0154Z17/GxGDEW0154Z17.h> // 1.54" b/w/r 152x152
3536
#include <GxGDE0213B1/GxGDE0213B1.h> // 2.13" b/w
@@ -387,6 +388,3 @@ void showFont(GxEPD& display, const char name[], const GFXfont* f)
387388
display.update();
388389
delay(5000);
389390
}
390-
391-
392-

examples/GxEPD_SD_Example/GxEPD_SD_Example.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ SdFat SD;
7575

7676
// select the display class to use, only one
7777
//#include <GxGDEP015OC1/GxGDEP015OC1.h> // 1.54" b/w
78+
//#include <GxGDEH0154D67/GxGDEH0154D67.h> // 1.54" b/w
7879
//#include <GxGDEW0154Z04/GxGDEW0154Z04.h> // 1.54" b/w/r 200x200
7980
//#include <GxGDEW0154Z17/GxGDEW0154Z17.h> // 1.54" b/w/r 152x152
8081
//#include <GxGDEW0213I5F/GxGDEW0213I5F.h> // 2.13" b/w 104x212 flexible

examples/GxEPD_WiFi_Example/GxEPD_WiFi_Example.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
// select the display class to use, only one
4949
//#include <GxGDEP015OC1/GxGDEP015OC1.h> // 1.54" b/w
50+
//#include <GxGDEH0154D67/GxGDEH0154D67.h> // 1.54" b/w
5051
//#include <GxGDEW0154Z04/GxGDEW0154Z04.h> // 1.54" b/w/r 200x200
5152
//#include <GxGDEW0154Z17/GxGDEW0154Z17.h> // 1.54" b/w/r 152x152
5253
//#include <GxGDEW0213I5F/GxGDEW0213I5F.h> // 2.13" b/w 104x212 flexible

examples/GxFont_GFX_Example/GxFont_GFX_Example.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767

6868
// select the display class to use, only one
6969
//#include <GxGDEP015OC1/GxGDEP015OC1.h> // 1.54" b/w
70+
//#include <GxGDEH0154D67/GxGDEH0154D67.h> // 1.54" b/w
7071
//#include <GxGDEW0154Z04/GxGDEW0154Z04.h> // 1.54" b/w/r 200x200
7172
//#include <GxGDEW0154Z17/GxGDEW0154Z17.h> // 1.54" b/w/r 152x152
7273
//#include <GxGDEW0213I5F/GxGDEW0213I5F.h> // 2.13" b/w 104x212 flexible

examples/PagedDisplayForSmallRam/PagedDisplayForSmallRam.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
// select the display class to use, only one
3939
//#include <GxGDEP015OC1/GxGDEP015OC1.h> // 1.54" b/w
40+
//#include <GxGDEH0154D67/GxGDEH0154D67.h> // 1.54" b/w
4041
//#include <GxGDEW0154Z04/GxGDEW0154Z04.h> // 1.54" b/w/r 200x200
4142
//#include <GxGDEW0154Z17/GxGDEW0154Z17.h> // 1.54" b/w/r 152x152
4243
//#include <GxGDEW0213I5F/GxGDEW0213I5F.h> // 2.13" b/w 104x212 flexible

examples/PartialUpdateExample/PartialUpdateExample.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
// select the display class to use, only one
4141
//#include <GxGDEP015OC1/GxGDEP015OC1.h> // 1.54" b/w
42+
//#include <GxGDEH0154D67/GxGDEH0154D67.h> // 1.54" b/w
4243
//#include <GxGDEW0213I5F/GxGDEW0213I5F.h> // 2.13" b/w 104x212 flexible
4344
//#include <GxGDE0213B1/GxGDE0213B1.h> // 2.13" b/w
4445
//#include <GxGDEH0213B72/GxGDEH0213B72.h> // 2.13" b/w new panel

0 commit comments

Comments
 (0)