Skip to content

Commit 54bcb2a

Browse files
authored
🐛 add x and y offsets.
with this fix, the blue rectangle will situate at the corner near Vin pin.
1 parent 20e8302 commit 54bcb2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,14 @@ With 1.14" `wiring <https://learn.adafruit.com/adafruit-1-44-color-tft-with-micr
124124
# Setup SPI bus using hardware SPI:
125125
spi = busio.SPI(clock=SCK, MOSI=MOSI, MISO=MISO)
126126
127-
# Create the ILI9341 display:
127+
# Create the ST7789 display:
128128
display = ST7789(
129129
spi,
130130
rotation=90,
131131
width=135,
132132
height=240,
133+
x_offset=53,
134+
y_offset=40,
133135
baudrate=BAUDRATE,
134136
cs=digitalio.DigitalInOut(CS_PIN),
135137
dc=digitalio.DigitalInOut(DC_PIN),

0 commit comments

Comments
 (0)