aboutsummaryrefslogtreecommitdiff
path: root/display.h
blob: ab8c0787e17f91933ca23bf66fc8647dd6f07f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#define LCD_WIDTH (20)
#define LCD_HEIGHT (4)

#define C_BAT_LOW (1)
#define C_DESC    (2)
#define C_IDLE    (3)
#define C_ASC     (4)

struct display {
	void (*clear)(void);
	void (*init)(void);
	void (*write)(const char *text);
	void (*set_cursor)(int x, int y);
};

void get_system_display(struct display *);