initial WIP
lots of code copied over, things filled in to hopefully get the LED matrix lighting up. untested.
This commit is contained in:
35
firmware/app/led/matrix.h
Normal file
35
firmware/app/led/matrix.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __APP_LED_MATRIX_H
|
||||
#define __APP_LED_MATRIX_H
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
|
||||
// 0 index = bottom.
|
||||
// 0 value = no LED here.
|
||||
typedef struct LedMap {
|
||||
uint8_t ribbon[80]; // a "linear" bottom to top map, with gaps for the spacing.
|
||||
uint8_t a[20]; // left to right, bottom to apex to bottom.
|
||||
uint8_t ii_lf[5]; // top to bottom.
|
||||
uint8_t ii_rt[5]; // top to bottom.
|
||||
} LedMap;
|
||||
|
||||
|
||||
|
||||
extern LedMap led_set;
|
||||
|
||||
|
||||
|
||||
void matrix_init();
|
||||
void matrix_send();
|
||||
|
||||
void matrix_flag_update();
|
||||
|
||||
|
||||
|
||||
#endif /* __APP_LED_MATRIX_H */
|
||||
Reference in New Issue
Block a user