Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TilCreator
firmware
Commits
8653530c
Commit
8653530c
authored
5 years ago
by
TilCreator
Browse files
Options
Downloads
Patches
Plain Diff
Fix code style
parent
88fa7997
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#3703
failed
5 years ago
Stage: build
Stage: test
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/modules/display.c
+13
-9
13 additions, 9 deletions
epicardium/modules/display.c
pycardium/modules/sys_display.c
+14
-9
14 additions, 9 deletions
pycardium/modules/sys_display.c
with
27 additions
and
18 deletions
epicardium/modules/display.c
+
13
−
9
View file @
8653530c
...
@@ -76,8 +76,12 @@ int epic_disp_clear(uint16_t color)
...
@@ -76,8 +76,12 @@ int epic_disp_clear(uint16_t color)
}
}
}
}
int
epic_disp_pixels
(
const
uint8_t
*
data
,
size_t
data_length
,
uint8_t
offset_x
,
uint8_t
offset_y
)
int
epic_disp_pixels
(
{
const
uint8_t
*
data
,
size_t
data_length
,
uint8_t
offset_x
,
uint8_t
offset_y
)
{
int
cl
=
check_lock
();
int
cl
=
check_lock
();
if
(
cl
<
0
)
{
if
(
cl
<
0
)
{
...
...
This diff is collapsed.
Click to expand it.
pycardium/modules/sys_display.c
+
14
−
9
View file @
8653530c
...
@@ -108,11 +108,16 @@ static mp_obj_t mp_display_pixels(size_t n_args, const mp_obj_t *args)
...
@@ -108,11 +108,16 @@ static mp_obj_t mp_display_pixels(size_t n_args, const mp_obj_t *args)
}
}
if
((
bufinfo
.
len
%
4
)
!=
0
)
{
if
((
bufinfo
.
len
%
4
)
!=
0
)
{
mp_raise_msg
(
&
mp_type_AssertionError
,
"buffer length is not divisible by 4"
);
mp_raise_msg
(
&
mp_type_AssertionError
,
"buffer length is not divisible by 4"
);
return
mp_const_none
;
return
mp_const_none
;
}
}
int
res
=
epic_disp_pixels
((
uint8_t
*
)(
bufinfo
.
buf
),
bufinfo
.
len
,
offset_x
,
offset_y
);
int
res
=
epic_disp_pixels
(
(
uint8_t
*
)(
bufinfo
.
buf
),
bufinfo
.
len
,
offset_x
,
offset_y
);
if
(
res
<
0
)
{
if
(
res
<
0
)
{
mp_raise_OSError
(
-
res
);
mp_raise_OSError
(
-
res
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment