Skip to content

dont forget set frequency (as we dont use busdevice) #27

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

Merged
merged 1 commit into from
Sep 28, 2019
Merged
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
5 changes: 5 additions & 0 deletions adafruit_epd/epd.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ def __init__(self, width, height, spi, cs_pin, dc_pin, sramcs_pin, rst_pin, busy

# SPI interface (required)
self.spi_device = spi
while not self.spi_device.try_lock():
pass
self.spi_device.configure(baudrate=1000000) # 1 Mhz
Copy link

@dcbriccetti dcbriccetti Sep 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the small chance you don’t know about the feature (and in spite of the fact that this is already merged), I’ll mention that 1_000_000 is easier to read than 1000000.

self.spi_device.unlock()

self._spibuf = bytearray(1)
self._single_byte_tx = False

Expand Down