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
bc854ec4
Commit
bc854ec4
authored
Feb 25, 2021
by
Mike Szczys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use hardware spi
parent
0bdcbe79
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
examples/T-DISPLAY/time_trial.py
examples/T-DISPLAY/time_trial.py
+2
-2
examples/T-DISPLAY/ttgo_fonts.py
examples/T-DISPLAY/ttgo_fonts.py
+2
-2
examples/T-DISPLAY/ttgo_hello.py
examples/T-DISPLAY/ttgo_hello.py
+2
-2
examples/T-DISPLAY/ttgo_hershey.py
examples/T-DISPLAY/ttgo_hershey.py
+2
-2
examples/T-DISPLAY/ttgo_scroll.py
examples/T-DISPLAY/ttgo_scroll.py
+2
-2
No files found.
examples/T-DISPLAY/time_trial.py
View file @
bc854ec4
...
...
@@ -9,7 +9,7 @@ ttgo_hello.py
"""
import
random
from
machine
import
Pin
,
S
oftS
PI
from
machine
import
Pin
,
SPI
import
st7789
as
st7789
import
time
import
utime
...
...
@@ -20,7 +20,7 @@ import vga1_8x16 as font
def
main
():
tft
=
st7789
.
ST7789
(
S
oftSPI
(
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
),
miso
=
Pin
(
21
)),
S
PI
(
2
,
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
)),
135
,
240
,
reset
=
Pin
(
23
,
Pin
.
OUT
),
...
...
examples/T-DISPLAY/ttgo_fonts.py
View file @
bc854ec4
...
...
@@ -8,7 +8,7 @@ ttgo_fonts.py
"""
import
utime
import
random
from
machine
import
Pin
,
S
oftS
PI
from
machine
import
Pin
,
SPI
import
st7789
import
vga1_8x8
as
font1
...
...
@@ -19,7 +19,7 @@ import vga1_bold_16x32 as font4
def
main
():
tft
=
st7789
.
ST7789
(
S
oftSPI
(
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
),
miso
=
Pin
(
21
)),
S
PI
(
2
,
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
)),
135
,
240
,
reset
=
Pin
(
23
,
Pin
.
OUT
),
...
...
examples/T-DISPLAY/ttgo_hello.py
View file @
bc854ec4
...
...
@@ -8,7 +8,7 @@ ttgo_hello.py
"""
import
random
from
machine
import
Pin
,
S
oftS
PI
from
machine
import
Pin
,
SPI
import
st7789
import
vga1_bold_16x32
as
font
...
...
@@ -16,7 +16,7 @@ import vga1_bold_16x32 as font
def
main
():
tft
=
st7789
.
ST7789
(
S
oftSPI
(
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
),
miso
=
Pin
(
21
)),
S
PI
(
2
,
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
)),
135
,
240
,
reset
=
Pin
(
23
,
Pin
.
OUT
),
...
...
examples/T-DISPLAY/ttgo_hershey.py
View file @
bc854ec4
...
...
@@ -9,7 +9,7 @@ ttgo_hershey.py
import
utime
import
random
import
sys
from
machine
import
Pin
,
S
oftS
PI
from
machine
import
Pin
,
SPI
import
st7789
# Load several frozen fonts from flash
...
...
@@ -65,7 +65,7 @@ def main():
'''
# configure display
tft
=
st7789
.
ST7789
(
S
oftSPI
(
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
),
miso
=
Pin
(
21
)),
S
PI
(
2
,
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
)),
135
,
240
,
reset
=
Pin
(
23
,
Pin
.
OUT
),
...
...
examples/T-DISPLAY/ttgo_scroll.py
View file @
bc854ec4
...
...
@@ -9,7 +9,7 @@ ttgo_scroll.py
"""
import
utime
import
random
from
machine
import
Pin
,
S
oftS
PI
from
machine
import
Pin
,
SPI
import
st7789
import
vga1_bold_16x16
as
font
...
...
@@ -30,7 +30,7 @@ def cycle(p):
def
main
():
tft
=
st7789
.
ST7789
(
S
oftSPI
(
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
),
miso
=
Pin
(
21
)),
S
PI
(
2
,
baudrate
=
30000000
,
polarity
=
1
,
phase
=
1
,
sck
=
Pin
(
18
),
mosi
=
Pin
(
19
)),
135
,
240
,
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