Skip to content

Commit 6679997

Browse files
committed
panelsetting and inits
1 parent 0bc85b1 commit 6679997

File tree

5 files changed

+39
-3
lines changed

5 files changed

+39
-3
lines changed

adafruit_epd/uc8179.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ def power_up(self) -> None:
162162
# Panel setting - different for tricolor vs monochrome
163163
if self._tri_color:
164164
# Tricolor display: 0b000111 (0x07) - Tricolor OTP LUT
165-
self.command(_UC8179_PANELSETTING, bytearray([0b000111]))
165+
self.command(_UC8179_PANELSETTING, bytearray([0b001111]))
166166
else:
167167
# Monochrome display: 0b010111 (0x17) - BW OTP LUT
168-
self.command(_UC8179_PANELSETTING, bytearray([0b010111]))
168+
self.command(_UC8179_PANELSETTING, bytearray([0b011111]))
169169

170170
# Resolution setting
171171
self.command(

examples/epd_bitmap.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@
5252
rst_pin=rst,
5353
busy_pin=busy,
5454
)
55+
''' display = Adafruit_UC8179(800, 480, # 7.5" tricolor 800x480 display
56+
spi,
57+
cs_pin=ecs,
58+
dc_pin=dc,
59+
sramcs_pin=srcs,
60+
rst_pin=rst,
61+
busy_pin=busy,
62+
tri_color = True
63+
)'''
5564

5665
# IF YOU HAVE A 2.13" FLEXIBLE DISPLAY OR!
5766
# UC8179 5.83" or 7.5" displays

examples/epd_pillow_demo.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@
7171
rst_pin=rst,
7272
busy_pin=busy,
7373
)
74+
''' display = Adafruit_UC8179(800, 480, # 7.5" tricolor 800x480 display
75+
spi,
76+
cs_pin=ecs,
77+
dc_pin=dc,
78+
sramcs_pin=srcs,
79+
rst_pin=rst,
80+
busy_pin=busy,
81+
tri_color = True
82+
)'''
7483

7584
# IF YOU HAVE A 2.13" FLEXIBLE DISPLAY OR!
7685
# UC8179 5.83" or 7.5" displays

examples/epd_pillow_image.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@
6161
rst_pin=rst,
6262
busy_pin=busy,
6363
)
64+
''' display = Adafruit_UC8179(800, 480, # 7.5" tricolor 800x480 display
65+
spi,
66+
cs_pin=ecs,
67+
dc_pin=dc,
68+
sramcs_pin=srcs,
69+
rst_pin=rst,
70+
busy_pin=busy,
71+
tri_color = True
72+
)'''
6473

6574
# IF YOU HAVE A 2.13" FLEXIBLE DISPLAY OR!
6675
# UC8179 5.83" or 7.5" displays

examples/epd_simpletest.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,18 @@
5555
rst_pin=rst,
5656
busy_pin=busy,
5757
)
58+
''' display = Adafruit_UC8179(800, 480, # 7.5" tricolor 800x480 display
59+
spi,
60+
cs_pin=ecs,
61+
dc_pin=dc,
62+
sramcs_pin=srcs,
63+
rst_pin=rst,
64+
busy_pin=busy,
65+
tri_color = True
66+
)'''
5867

5968
# IF YOU HAVE A 2.13" FLEXIBLE DISPLAY OR!
60-
# UC8179 5.83" or 7.5" displays
69+
# UC8179 5.83" or 7.5" monochrome displays
6170
# uncomment these lines!
6271
# display.set_black_buffer(1, False)
6372
# display.set_color_buffer(1, False)

0 commit comments

Comments
 (0)