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
3 changes: 2 additions & 1 deletion adafruit_ssd1325.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

_INIT_SEQUENCE = (
b"\xAE\x00" # DISPLAY_OFF
b"\xb3\x01\xf1" # Set clock
b"\xb3\x01\xa1" # Set clock
b"\xa8\x01\x3f" # Mux ratio is 1/64
b"\xa1\x01\x00" # Display start line is 0
b"\xa2\x01\x4c" # Display offset is 0
Expand All @@ -62,6 +62,7 @@
b"\xb1\x01\x55" # Set phase length
b"\xb4\x01\x02" # Set pre-charge comp
b"\xb0\x01\x28" # Set pre-charge comp enable
b"\xbc\x01\x3f" # Set pre-charge voltage
b"\xbe\x01\x1c" # Set vcom voltage
b"\xbf\x01\x0f" # set Low Voltage Level of SEG Pin
b"\xa4\x00" # Normal display
Expand Down
4 changes: 2 additions & 2 deletions examples/ssd1325_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

color_bitmap = displayio.Bitmap(display.width, display.height, 1)
color_palette = displayio.Palette(1)
color_palette[0] = 0x888888 # White
color_palette[0] = 0xFFFFFF # White

bg_sprite = displayio.TileGrid(color_bitmap,
pixel_shader=color_palette,
Expand All @@ -53,7 +53,7 @@

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