28 lines
484 B
C
28 lines
484 B
C
#ifndef __LED7SEG_H__
|
|
#define __LED7SEG_H__
|
|
|
|
#include <global.h>
|
|
|
|
|
|
struct st_7seg {
|
|
uint8_t data[3][8];
|
|
uint8_t dp[3];
|
|
int module;
|
|
int digit;
|
|
int bit;
|
|
uint16_t datagram;
|
|
uint8_t buttons;
|
|
};
|
|
|
|
|
|
extern struct st_7seg st_7seg;
|
|
|
|
|
|
void init_7seg(void);
|
|
void step_7seg(void);
|
|
int bt_inputs(void);
|
|
void decimal_7seg(int module, int value, uint8_t dp);
|
|
void hex_7seg(int module, uint32_t value, uint8_t dp);
|
|
void blank_7seg(int module);
|
|
|
|
#endif /* __LED7SEG_H__ */
|