Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Haun
firmware
Commits
31a8277b
Commit
31a8277b
authored
Oct 05, 2019
by
fleur
Committed by
dx
Oct 05, 2019
Browse files
led feedback on top and bottom pcb on boot for people with broken displays
parent
51d40ee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
epicardium/main.c
View file @
31a8277b
...
...
@@ -6,6 +6,7 @@
#include "gfx.h"
#include "display.h"
#include "leds.h"
#include "version-splash.h"
#include "FreeRTOS.h"
...
...
@@ -31,8 +32,21 @@ int main(void)
* Version Splash
*/
const
char
*
version_buf
=
CARD10_VERSION
;
mxc_delay
(
500000
);
//LED feedback in case of dead display
epic_leds_set
(
11
,
0
,
0
,
1
);
epic_leds_set
(
12
,
0
,
0
,
1
);
epic_leds_set
(
13
,
0
,
0
,
1
);
epic_leds_set
(
14
,
0
,
0
,
1
);
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
epic_leds_set_rocket
(
i
,
31
);
mxc_delay
(
166666
);
epic_leds_set_rocket
(
i
,
0
);
}
epic_leds_clear_all
(
0
,
0
,
0
);
epic_disp_clear
(
0x0000
);
if
(
strcmp
(
CARD10_VERSION
,
"v1.11"
)
==
0
)
{
gfx_copy_region
(
&
display_screen
,
...
...
Write
Preview
Supports
Markdown
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