Skip to content

Commit 8598410

Browse files
committed
Combine two dicts before destructuring
1 parent 751eeac commit 8598410

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

adafruit_qualia/displays/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,9 @@ def init(self, *, auto_refresh: bool = True):
5353
i2c, self._init_sequence, **tft_io_expander
5454
)
5555
i2c.deinit()
56-
57-
tft_pins = dict(board.TFT_PINS)
58-
framebuffer = dotclockframebuffer.DotClockFramebuffer(
59-
**tft_pins, **self._timings
60-
)
56+
params = dict(board.TFT_PINS)
57+
params.update(self._timings)
58+
framebuffer = dotclockframebuffer.DotClockFramebuffer(**params)
6159
self.display = FramebufferDisplay(framebuffer, auto_refresh=auto_refresh)
6260

6361
def init_touch(self):

0 commit comments

Comments
 (0)