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
4f0d832b
Commit
4f0d832b
authored
Feb 12, 2022
by
russhughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed init deplay to 150ms from 500ms
parent
cb6f57f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
st7789/st7789.c
st7789/st7789.c
+9
-1
No files found.
st7789/st7789.c
View file @
4f0d832b
...
...
@@ -1170,7 +1170,7 @@ STATIC mp_obj_t st7789_ST7789_init(mp_obj_t self_in)
mp_hal_pin_write
(
self
->
backlight
,
1
);
write_cmd
(
self
,
ST7789_DISPON
,
NULL
,
0
);
mp_hal_delay_ms
(
50
0
);
mp_hal_delay_ms
(
15
0
);
return
mp_const_none
;
}
...
...
@@ -2184,6 +2184,8 @@ mp_obj_t st7789_ST7789_make_new(const mp_obj_type_t *type,
if
(
self
->
buffer_size
)
{
self
->
i2c_buffer
=
m_malloc
(
self
->
buffer_size
);
}
else
{
self
->
i2c_buffer
=
NULL
;
}
if
(
args
[
ARG_dc
].
u_obj
==
MP_OBJ_NULL
)
{
...
...
@@ -2192,16 +2194,22 @@ mp_obj_t st7789_ST7789_make_new(const mp_obj_type_t *type,
if
(
args
[
ARG_reset
].
u_obj
!=
MP_OBJ_NULL
)
{
self
->
reset
=
mp_hal_get_pin_obj
(
args
[
ARG_reset
].
u_obj
);
}
else
{
self
->
reset
=
0
;
}
self
->
dc
=
mp_hal_get_pin_obj
(
args
[
ARG_dc
].
u_obj
);
if
(
args
[
ARG_cs
].
u_obj
!=
MP_OBJ_NULL
)
{
self
->
cs
=
mp_hal_get_pin_obj
(
args
[
ARG_cs
].
u_obj
);
}
else
{
self
->
cs
=
0
;
}
if
(
args
[
ARG_backlight
].
u_obj
!=
MP_OBJ_NULL
)
{
self
->
backlight
=
mp_hal_get_pin_obj
(
args
[
ARG_backlight
].
u_obj
);
}
else
{
self
->
backlight
=
0
;
}
self
->
bounding
=
0
;
...
...
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