Skip to content
Snippets Groups Projects
Commit 60cff058 authored by ch3's avatar ch3
Browse files

feat(use-api): Add leds_set() function to API

parent 886472d0
Branches ch3/leds-api
No related tags found
No related merge requests found
......@@ -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 */
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment