Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RPi eInk Bonnet guides with new SSD1680B driver #2935

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion EInk_Bonnet_Event_Calendar/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from adafruit_epd.epd import Adafruit_EPD
from adafruit_epd.ssd1675 import Adafruit_SSD1675
from adafruit_epd.ssd1680 import Adafruit_SSD1680
from adafruit_epd.ssd1680b import Adafruit_SSD1680B

spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
ecs = digitalio.DigitalInOut(board.CE0)
Expand All @@ -39,7 +40,8 @@
DEBOUNCE_DELAY = 0.3

# Initialize the Display
display = Adafruit_SSD1680( # Newer eInk Bonnet
display = Adafruit_SSD1680B( # Newer eInk Bonnet (GDEY0213B74 display)
# display = Adafruit_SSD1680( # Old eInk Bonnet
# display = Adafruit_SSD1675( # Older eInk Bonnet
122, 250, spi, cs_pin=ecs, dc_pin=dc, sramcs_pin=None, rst_pin=rst, busy_pin=busy,
)
Expand Down
6 changes: 3 additions & 3 deletions EInk_Bonnet_Weather_Station/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import board
from adafruit_epd.ssd1675 import Adafruit_SSD1675
from adafruit_epd.ssd1680 import Adafruit_SSD1680
from adafruit_epd.ssd1680 import Adafruit_SSD1680Z
from adafruit_epd.ssd1680b import Adafruit_SSD1680B
from weather_graphics import Weather_Graphics

spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
Expand Down Expand Up @@ -43,8 +43,8 @@
data_source = DATA_SOURCE_URL + "?" + urllib.parse.urlencode(params)

# Initialize the Display
display = Adafruit_SSD1680Z( # New Bonnet ssd1680z [GDEY0213B74]
#display = Adafruit_SSD1680( # Old eInk Bonnet ssd1680
display = Adafruit_SSD1680B( # Newer eInk Bonnet (GDEY0213B74 display)
#display = Adafruit_SSD1680( # Old eInk Bonnet ssd1680
#display = Adafruit_SSD1675( # Older eInk Bonnet ssd1675
# 122, 250, spi, cs_pin=ecs, dc_pin=dc, sramcs_pin=None, rst_pin=rst, busy_pin=busy,
120, 250, spi, cs_pin=ecs, dc_pin=dc, sramcs_pin=None, rst_pin=rst, busy_pin=busy,
Expand Down
Loading