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
External 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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
q3k
firmware
Commits
884572ed
Commit
884572ed
authored
5 years ago
by
q3k
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
8e714cce
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/epicardium.h
+0
-5
0 additions, 5 deletions
epicardium/epicardium.h
l0dables/cube/main.c
+11
-2
11 additions, 2 deletions
l0dables/cube/main.c
with
11 additions
and
7 deletions
epicardium/epicardium.h
+
0
−
5
View file @
884572ed
...
...
@@ -320,11 +320,6 @@ API(API_DISP_CLOSE, int epic_disp_close());
* to be shown on the display
*/
API
(
API_DISP_UPDATE
,
int
epic_disp_update
());
/**
* Returns the back framebuffer (the display buffer that's currently inactive
* that will be shown after the next call to ``epic_disp_update``.
*/
API
(
API_DISP_FRAMEBUFFER
,
uint16_t
*
epic_disp_framebuffer
());
/**
* Prints a string into the display framebuffer
...
...
This diff is collapsed.
Click to expand it.
l0dables/cube/main.c
+
11
−
2
View file @
884572ed
...
...
@@ -16,8 +16,17 @@ int main(void) {
float
theta
=
0
.
0
f
;
int
i
=
0
;
for
(;;)
{
FB_Draw
(
framebuffer
,
theta
);
epic_disp_update_fb
(
framebuffer
);
struct
disp_framebuffer
*
fb
=
epic_disp_framebuffer
();
//FB_Draw((uint16_t*)fb->fb, theta);
uint16_t
red
=
0
b0000011111100000
;
for
(
int
y
=
0
;
y
<
DISP_HEIGHT
;
y
++
)
{
for
(
int
x
=
0
;
x
<
DISP_WIDTH
;
x
++
)
{
fb
->
fb
[
y
][
x
][
0
]
=
red
>>
8
;
fb
->
fb
[
y
][
x
][
1
]
=
red
&
0xFF
;
}
}
epic_disp_update
();
theta
+=
0
.
1
f
;
}
...
...
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