Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
PetePriority
firmware
Commits
60cff058
Commit
60cff058
authored
Jun 18, 2019
by
ch3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(use-api): Add leds_set() function to API
parent
886472d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
epicardium/epicardium.h
epicardium/epicardium.h
+3
-0
epicardium/main.c
epicardium/main.c
+6
-0
No files found.
epicardium/epicardium.h
View file @
60cff058
...
...
@@ -12,4 +12,7 @@ API(API_UART_WRITE, void epic_uart_write_str(char*str, intptr_t length));
#define API_UART_READ 0x2
API
(
API_UART_READ
,
char
epic_uart_read_chr
(
void
));
#define API_LEDS_SET 0x3
API
(
API_LEDS_SET
,
void
epic_leds_set
(
int
led
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
));
#endif
/* _EPICARDIUM_H */
epicardium/main.c
View file @
60cff058
...
...
@@ -15,6 +15,12 @@ char epic_uart_read_chr(void)
return
UART_ReadByte
(
ConsoleUart
);
}
void
epic_leds_set
(
int
led
,
uint8_t
r
,
uint8_t
g
,
uint8_t
b
)
{
leds_set
(
led
,
r
,
g
,
b
);
leds_update
();
}
int
main
(
void
)
{
card10_init
();
...
...
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