Skip to content

Commit 91ba535

Browse files
authored
Merge pull request #4 from makermelissa/master
Tuned driver better, example looks better
2 parents 9ec7507 + 61e3de7 commit 91ba535

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

adafruit_ssd1325.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
_INIT_SEQUENCE = (
5151
b"\xAE\x00" # DISPLAY_OFF
52-
b"\xb3\x01\xf1" # Set clock
52+
b"\xb3\x01\xa1" # Set clock
5353
b"\xa8\x01\x3f" # Mux ratio is 1/64
5454
b"\xa1\x01\x00" # Display start line is 0
5555
b"\xa2\x01\x4c" # Display offset is 0
@@ -62,6 +62,7 @@
6262
b"\xb1\x01\x55" # Set phase length
6363
b"\xb4\x01\x02" # Set pre-charge comp
6464
b"\xb0\x01\x28" # Set pre-charge comp enable
65+
b"\xbc\x01\x3f" # Set pre-charge voltage
6566
b"\xbe\x01\x1c" # Set vcom voltage
6667
b"\xbf\x01\x0f" # set Low Voltage Level of SEG Pin
6768
b"\xa4\x00" # Normal display

examples/ssd1325_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
color_bitmap = displayio.Bitmap(display.width, display.height, 1)
3737
color_palette = displayio.Palette(1)
38-
color_palette[0] = 0x888888 # White
38+
color_palette[0] = 0xFFFFFF # White
3939

4040
bg_sprite = displayio.TileGrid(color_bitmap,
4141
pixel_shader=color_palette,
@@ -53,7 +53,7 @@
5353

5454
# Draw a label
5555
text = "Hello World!"
56-
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF)
56+
text_area = label.Label(terminalio.FONT, text=text, color=0x888888)
5757
text_width = text_area.bounding_box[2] * FONTSCALE
5858
text_group = displayio.Group(max_size=10, scale=FONTSCALE, x=display.width // 2 - text_width // 2,
5959
y=display.height // 2)

0 commit comments

Comments
 (0)