-
Notifications
You must be signed in to change notification settings - Fork 0
/
vfd_8d14s.h
30 lines (21 loc) · 802 Bytes
/
vfd_8d14s.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef VFDCO_8D14S_H
#define VFDCO_8D14S_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#define VFDCO_8D14S_OVERLAY_DP_LEFT 0b0010000000000000
#define VFDCO_8D14S_OVERLAY_DP_RIGHT 0b1000000000000000
#define VFDCO_8D14S_OVERLAY_COL_LEFT 0b1000000000000000
#define VFDCO_8D14S_OVERLAY_COL_CENTER 0b0010000000000000
#define VFDCO_8D14S_OVERLAY_COL_RIGHT 0b0010000000000000
void vfdco_8d14s_init();
void vfdco_8d14s_write_char(uint8_t digit_position, char character);
void vfdco_8d14s_write_char_with_overlay(uint8_t digit_position, char character, uint16_t overlay);
void vfdco_8d14s_write_string(char *text);
// Multi bit overlay 0b[0|0|0|DPL|DPR|COL|COC|COR]
void vfdco_8d14s_write_string_with_overlay(char *text, uint8_t overlay);
#ifdef __cplusplus
}
#endif
#endif