-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdisplay.h
More file actions
34 lines (21 loc) · 871 Bytes
/
display.h
File metadata and controls
34 lines (21 loc) · 871 Bytes
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
31
32
33
34
#ifndef BREWTALLY_DISPLAY_H_
#define BREWTALLY_DISPLAY_H_
#include <stdint.h>
static const uint8_t kDisplayMaxBrightness = 25;
//#define DISPLAY_ENABLE_MILLIS
//Function declarations
void display_init(void);
//Set brightness value between 0 (minimum bright) and 25 (full bright)
void display_set_brightness(uint8_t brightness);
//Reset buffer and clear frame count
void display_clear(void);
//Write a number
void display_write_number(uint8_t frame, uint16_t number, uint8_t precision);
//Write a string (limited to display size, limited char support 0-9, A-U)
void display_write_string(uint8_t frame, const char* text);
//Write timeValue in milliseconds as HH:MM or MM:SS
void display_write_time(uint8_t frame, uint32_t timeValue);
void display_write_raw(uint8_t frame, uint8_t data[]);
void display_frame_focus(uint8_t frame);
uint32_t millis(void);
#endif