Skip to content

Commit

Permalink
Merge pull request #146 from brickbots/display_spi_speed
Browse files Browse the repository at this point in the history
Change SPI speed to 48,000,000hz for slightly faster screen redraws
  • Loading branch information
brickbots authored Mar 2, 2024
2 parents c64fbca + 6640e7d commit 1d08141
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/PiFinder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def init_display():
from luma.oled.device import ssd1351

# init display (SPI hardware)
serial = spi(device=0, port=0)
# 48,000,000 hz seems to be the fastest this display can support
serial = spi(device=0, port=0, bus_speed_hz=48000000)
device_serial = ssd1351(serial, rotate=0, bgr=True)
device_serial.capabilities(width=128, height=128, rotate=0, mode="RGB")
display_device = DeviceWrapper(device_serial, RED_RGB)
Expand Down

0 comments on commit 1d08141

Please sign in to comment.