-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.7" b/w GDEW027W3 with fast partial update support
- Loading branch information
Showing
16 changed files
with
2,112 additions
and
849 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Display Library for SPI e-paper panels from Dalian Good Display and boards from Waveshare. | ||
// Requires HW SPI and Adafruit_GFX. Caution: these e-papers require 3.3V supply AND data lines! | ||
// | ||
// based on Demo Example from Good Display: http://www.e-paper-display.com/download_list/downloadcategoryid=34&isMode=false.html | ||
// | ||
// Author: Jean-Marc Zingg | ||
// | ||
// Version: see library.properties | ||
// | ||
// Library: https://github.com/ZinggJM/GxEPD2 | ||
|
||
#ifndef _GxEPD2_H_ | ||
#define _GxEPD2_H_ | ||
|
||
#include <Arduino.h> | ||
#include <SPI.h> | ||
|
||
#define GxEPD_BLACK 0x0000 | ||
#define GxEPD_DARKGREY 0x7BEF /* 128, 128, 128 */ | ||
#define GxEPD_LIGHTGREY 0xC618 /* 192, 192, 192 */ | ||
#define GxEPD_WHITE 0xFFFF | ||
#define GxEPD_RED 0xF800 /* 255, 0, 0 */ | ||
|
||
#define GxEPD_YELLOW GxEPD_RED | ||
#define GxEPD_COLORED GxEPD_RED | ||
|
||
class GxEPD2 | ||
{ | ||
public: | ||
enum Panel | ||
{ | ||
GDEP015OC1, Waveshare_1_54_bw = GDEP015OC1, | ||
GDE0213B1, Waveshare_2_13_bw = GDE0213B1, | ||
GDEW0213I5F, Waveshare_2_13_flex = GDEW0213I5F, | ||
GDEH029A1, Waveshare_2_9_bw = GDEH029A1, | ||
GDEW027W3, Waveshare_2_7_bw = GDEW027W3, | ||
GDEW042T2, Waveshare_4_2_bw = GDEW042T2, | ||
GDEW0583T7, Waveshare_5_83_bw = GDEW0583T7, | ||
GDEW075T8, Waveshare_7_5_bw = GDEW075T8, | ||
// 3-color | ||
GDEW0154Z04, Waveshare_1_54_bwr = GDEW0154Z04, | ||
GDEW0213Z16, Waveshare_2_13_bwr = GDEW0213Z16, | ||
GDEW029Z10, Waveshare_2_9_bwr = GDEW029Z10, | ||
GDEW027C44, Waveshare_2_7_bwr = GDEW027C44, | ||
GDEW042Z15, Waveshare_4_2_bwr = GDEW042Z15, | ||
GDEW0583Z21, Waveshare_5_83_bwr = GDEW0583Z21, | ||
GDEW075Z09, Waveshare_7_5_bwr = GDEW075Z09 | ||
}; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.