You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
482 B
26 lines
482 B
5 months ago
|
#include <stdlib.h>
|
||
|
// #ifdef __cplusplus
|
||
|
// extern "C"
|
||
|
// {
|
||
|
// #endif
|
||
|
typedef struct
|
||
|
{
|
||
|
uint16_t *row_io;
|
||
|
uint16_t rows;
|
||
|
uint16_t *col_io;
|
||
|
uint16_t cols;
|
||
|
uint16_t led_io;
|
||
|
} matrix_keys_config;
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
matrix_keys_config matrix_keys;
|
||
|
} controls_config;
|
||
|
|
||
|
void setControl(uint16_t controlNum, uint8_t value);
|
||
|
void task_read_all(void *args);
|
||
|
void task_led_strip(void *arg);
|
||
|
void init_controls(controls_config *cfg);
|
||
|
// #ifdef __cplusplus
|
||
|
// }
|
||
|
// #endif
|