Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Integrated changes from Steven Wyns to support 64-column display.

  • Loading branch information...
commit 5ae8d3ac7758e877175b421cd9b0b19cc99505dc 1 parent b848655
@guyc authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 gaugette/ssd1306.py
View
8 gaugette/ssd1306.py
@@ -103,10 +103,10 @@ class SSD1306:
# We will keep d/c low and bump it high only for commands with data
# reset is normally HIGH, and pulled LOW to reset the display
- def __init__(self, bus=0, device=0, dc_pin=1, reset_pin=2, buffer_rows=64, buffer_cols=128):
- self.cols = 128
- self.rows = 32
- self.buffer_rows = 64
+ def __init__(self, bus=0, device=0, dc_pin=1, reset_pin=2, buffer_rows=64, buffer_cols=128, rows=32, cols=128):
+ self.cols = cols
+ self.rows = rows
+ self.buffer_rows = buffer_rows
self.mem_bytes = self.buffer_rows * self.cols / 8 # total bytes in SSD1306 display ram
self.dc_pin = dc_pin
self.reset_pin = reset_pin
Please sign in to comment.
Something went wrong with that request. Please try again.