-
Notifications
You must be signed in to change notification settings - Fork 6
/
display.h
39 lines (35 loc) · 1.05 KB
/
display.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
31
32
33
34
35
36
37
38
39
/*
* (c) 2015 László TÓTH
*
* Todo:
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* See <http://www.gnu.org/licenses/> to get a copy of the GNU General
* Public License.
*
*/
#ifndef DISPLAY_H
#define DISPLAY_H 1
#define CHAR_WIDTH 6
#define CHAR_HEIGHT 8
int initDisplay(void);
void closeDisplay(void);
void drawHorizontalBargraph(int x, int y, int w, int h, int percent);
void putText(int x, int y, char *buff);
void putTextToCenter(int y, char *buff);
void clearLine(int y);
void refreshDisplay(void);
int maxCharacter(void);
int maxLine(void);
int maxXPixel(void);
int maxYPixel(void);
#endif