Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boards/shields/waveshare_epaper/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# SPDX-License-Identifier: Apache-2.0
#

if SHIELD_WAVESHARE_EPAPER_GDEH029A1 || SHIELD_WAVESHARE_EPAPER_GDEH0213B1 || SHIELD_WAVESHARE_EPAPER_GDEH0213B72 || SHIELD_WAVESHARE_EPAPER_GDEW075T7 || SHIELD_WAVESHARE_EPAPER_GDEH0154A07 || SHIELD_WAVESHARE_EPAPER_GDEW042T2
if SHIELD_WAVESHARE_EPAPER_GDEH029A1 || SHIELD_WAVESHARE_EPAPER_GDEH0213B1 || SHIELD_WAVESHARE_EPAPER_GDEH0213B72 || SHIELD_WAVESHARE_EPAPER_GDEW075T7 || SHIELD_WAVESHARE_EPAPER_GDEH0154A07 || SHIELD_WAVESHARE_EPAPER_GDEW042T2 || SHIELD_WAVESHARE_EPAPER_GDEW042T2_P


if DISPLAY
Expand Down
3 changes: 3 additions & 0 deletions boards/shields/waveshare_epaper/Kconfig.shield
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ config SHIELD_WAVESHARE_EPAPER_GDEH0154A07

config SHIELD_WAVESHARE_EPAPER_GDEW042T2
def_bool $(shields_list_contains,waveshare_epaper_gdew042t2)

config SHIELD_WAVESHARE_EPAPER_GDEW042T2_P
def_bool $(shields_list_contains,waveshare_epaper_gdew042t2-p)
2 changes: 1 addition & 1 deletion boards/shields/waveshare_epaper/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Current supported displays
| GDEH0154D67 | | ssd16xx | |
+--------------+-----------------+--------------+------------------------------+
| Good Display | WFT0420CZ15 | UC8176 / | waveshare_epaper_gdew042t2 |
| GDEW042T2 | | gd7965 | |
| GDEW042T2 | | gd7965 | waveshare_epaper_gdew042t2-p |
+--------------+-----------------+--------------+------------------------------+


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* Copyright (c) 2022 Andreas Sandberg
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "waveshare_epaper_common.dtsi"

/ {
chosen {
zephyr,display = &uc8176;
};
};

&arduino_spi {
/*
* GoodDisplay GDEW042T2 with fast partial refresh. Based on
* configuration from GoodDisplay's Arduino example.
*/
uc8176: uc8176@0 {
compatible = "gooddisplay,gdew042t2", "ultrachip,uc8176";
spi-max-frequency = <4000000>;
reg = <0>;
width = <400>;
height = <300>;
dc-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
busy-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; /* D7 */

softstart = [ 17 17 17 ];

full {
cdi = <0x07>;
};

partial {
pwr = [ 03 02 2b 2b ];
cdi = <0x07>;
pll = <0x3c>;
vdcs = <0x08>;

lutc = [
00 01 0E 00 00 01
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00
];

lutww = [
00 01 0E 00 00 01
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
];

lutkw = [
20 01 0E 00 00 01
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
];

lutwk = [
10 01 0E 00 00 01
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
];

lutkk = [
00 01 0E 00 00 01
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
00 00 00 00 00 00
];
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@
dc-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
busy-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; /* D7 */
pwr = [03 00 26 26 09];

softstart = [17 17 17];
cdi = <0xd7>;
tcon = <0x22>;

full {
pwr = [03 00 26 26 09];
cdi = <0xd7>;
tcon = <0x22>;
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@
dc-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
busy-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; /* D7 */
pwr = [07 07 3f 3f];

softstart = [17 17 17 17];
cdi = <07>;
tcon = <0x22>;

full {
pwr = [07 07 3f 3f];
cdi = <07>;
tcon = <0x22>;
};
};
};
Loading