Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
st7789_mpy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
st7789_mpy
Commits
b9d91c45
Commit
b9d91c45
authored
Dec 12, 2021
by
russhughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
waveshare pico lcd2 config
parent
8b5fb492
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
examples/cfg_helper.py
examples/cfg_helper.py
+23
-8
No files found.
examples/cfg_helper.py
View file @
b9d91c45
...
...
@@ -71,15 +71,28 @@ import st7789
# BACKLIGHT_PIN = 4
# Generic st7735 128x128 display
# BAUDRATE = 30000000
# COLUMNS = 128
# ROWS = 160
# SCK_PIN = 18
# MOSI_PIN = 19
# RESET_PIN = 4
# CS_PIN = 13
# DC_PIN = 12
# BACKLIGHT_PIN = 15
# Waveshare Pico LCD 2 display
# 320×240 ST7789VW
# https://www.waveshare.com/wiki/Pico-LCD-2
BAUDRATE
=
30000000
COLUMNS
=
128
ROWS
=
128
SCK_PIN
=
1
9
MOSI_PIN
=
1
8
RESET_PIN
=
4
CS_PIN
=
13
DC_PIN
=
12
BACKLIGHT_PIN
=
1
5
COLUMNS
=
320
ROWS
=
240
SCK_PIN
=
1
0
MOSI_PIN
=
1
1
RESET_PIN
=
12
CS_PIN
=
9
DC_PIN
=
8
BACKLIGHT_PIN
=
1
3
# madctl register bits
MADCTL_MY
=
0x80
# Page Address Order
...
...
@@ -117,6 +130,8 @@ def show_help():
print
(
'V, v Toggle MADCTL_MV Page/Column Order '
)
print
(
'L, l Toggle MADCTL_ML Line Address Order'
)
print
(
'H, h Toggle MADCTL_MH Display Data Latch Order'
)
print
(
'C, c Set Columns'
)
print
(
'R, r Set Rows'
)
print
(
'I, i Toggle inversion'
)
print
(
'B, b Change background'
)
print
(
'P, p Print current settings'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment