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
3947df7c
Unverified
Commit
3947df7c
authored
Feb 24, 2021
by
russhughes
Committed by
GitHub
Feb 24, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20 from szczys/master
Reformatted SoftSPI initializations
parents
d675ee39
0bdcbe79
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
23 deletions
+5
-23
examples/T-DISPLAY/time_trial.py
examples/T-DISPLAY/time_trial.py
+1
-7
examples/T-DISPLAY/ttgo_fonts.py
examples/T-DISPLAY/ttgo_fonts.py
+1
-1
examples/T-DISPLAY/ttgo_hello.py
examples/T-DISPLAY/ttgo_hello.py
+1
-1
examples/T-DISPLAY/ttgo_hershey.py
examples/T-DISPLAY/ttgo_hershey.py
+1
-7
examples/T-DISPLAY/ttgo_scroll.py
examples/T-DISPLAY/ttgo_scroll.py
+1
-7
No files found.
examples/T-DISPLAY/time_trial.py
View file @
3947df7c
...
@@ -20,13 +20,7 @@ import vga1_8x16 as font
...
@@ -20,13 +20,7 @@ import vga1_8x16 as font
def
main
():
def
main
():
tft
=
st7789
.
ST7789
(
tft
=
st7789
.
ST7789
(
SoftSPI
(
SoftSPI
(
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
),
miso
=
Pin
(
21
)),
2
,
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
)),
135
,
135
,
240
,
240
,
reset
=
Pin
(
23
,
Pin
.
OUT
),
reset
=
Pin
(
23
,
Pin
.
OUT
),
...
...
examples/T-DISPLAY/ttgo_fonts.py
View file @
3947df7c
...
@@ -19,7 +19,7 @@ import vga1_bold_16x32 as font4
...
@@ -19,7 +19,7 @@ import vga1_bold_16x32 as font4
def
main
():
def
main
():
tft
=
st7789
.
ST7789
(
tft
=
st7789
.
ST7789
(
SoftSPI
(
2
,
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
)),
SoftSPI
(
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
),
miso
=
Pin
(
21
)),
135
,
135
,
240
,
240
,
reset
=
Pin
(
23
,
Pin
.
OUT
),
reset
=
Pin
(
23
,
Pin
.
OUT
),
...
...
examples/T-DISPLAY/ttgo_hello.py
View file @
3947df7c
...
@@ -16,7 +16,7 @@ import vga1_bold_16x32 as font
...
@@ -16,7 +16,7 @@ import vga1_bold_16x32 as font
def
main
():
def
main
():
tft
=
st7789
.
ST7789
(
tft
=
st7789
.
ST7789
(
SoftSPI
(
2
,
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
)),
SoftSPI
(
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
),
miso
=
Pin
(
21
)),
135
,
135
,
240
,
240
,
reset
=
Pin
(
23
,
Pin
.
OUT
),
reset
=
Pin
(
23
,
Pin
.
OUT
),
...
...
examples/T-DISPLAY/ttgo_hershey.py
View file @
3947df7c
...
@@ -65,13 +65,7 @@ def main():
...
@@ -65,13 +65,7 @@ def main():
'''
'''
# configure display
# configure display
tft
=
st7789
.
ST7789
(
tft
=
st7789
.
ST7789
(
SoftSPI
(
SoftSPI
(
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
),
miso
=
Pin
(
21
)),
2
,
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
)),
135
,
135
,
240
,
240
,
reset
=
Pin
(
23
,
Pin
.
OUT
),
reset
=
Pin
(
23
,
Pin
.
OUT
),
...
...
examples/T-DISPLAY/ttgo_scroll.py
View file @
3947df7c
...
@@ -30,13 +30,7 @@ def cycle(p):
...
@@ -30,13 +30,7 @@ def cycle(p):
def
main
():
def
main
():
tft
=
st7789
.
ST7789
(
tft
=
st7789
.
ST7789
(
SoftSPI
(
SoftSPI
(
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
),
miso
=
Pin
(
21
)),
2
,
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
)),
135
,
135
,
240
,
240
,
reset
=
Pin
(
23
,
Pin
.
OUT
),
reset
=
Pin
(
23
,
Pin
.
OUT
),
...
...
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