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
c1b81f78
Commit
c1b81f78
authored
Mar 10, 2021
by
Russ Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed overflow errors in bitmap method
parent
8de08fed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
st7789/st7789.c
st7789/st7789.c
+2
-2
No files found.
st7789/st7789.c
View file @
c1b81f78
...
...
@@ -509,7 +509,7 @@ STATIC mp_obj_t st7789_ST7789_draw(size_t n_args, const mp_obj_t *args) {
STATIC
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN
(
st7789_ST7789_draw_obj
,
6
,
7
,
st7789_ST7789_draw
);
STATIC
uint
16
_t
bs_bit
=
0
;
STATIC
uint
32
_t
bs_bit
=
0
;
uint8_t
*
bitmap_data
=
NULL
;
uint8_t
get_color
(
uint8_t
bpp
)
{
...
...
@@ -553,7 +553,7 @@ STATIC mp_obj_t st7789_ST7789_bitmap(size_t n_args, const mp_obj_t *args) {
self
->
i2c_buffer
=
m_malloc
(
buf_size
);
}
uint
16
_t
ofs
=
0
;
uint
32
_t
ofs
=
0
;
bs_bit
=
0
;
for
(
int
yy
=
0
;
yy
<
height
;
yy
++
)
{
...
...
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