From 61e3de7e7a391e877950e9f23db7e38865c4baeb Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Tue, 12 Nov 2019 16:09:53 -0800 Subject: [PATCH] Tuned driver better, example looks better --- adafruit_ssd1325.py | 3 ++- examples/ssd1325_simpletest.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/adafruit_ssd1325.py b/adafruit_ssd1325.py index 468c53e..44bf020 100644 --- a/adafruit_ssd1325.py +++ b/adafruit_ssd1325.py @@ -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 @@ -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 diff --git a/examples/ssd1325_simpletest.py b/examples/ssd1325_simpletest.py index 60fe00a..22f61dc 100644 --- a/examples/ssd1325_simpletest.py +++ b/examples/ssd1325_simpletest.py @@ -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, @@ -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)