-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlcd.h
More file actions
80 lines (67 loc) · 3.55 KB
/
Copy pathlcd.h
File metadata and controls
80 lines (67 loc) · 3.55 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//--------------------------------------------------------------------------------------------------
// _ _
// | | | |
// ___ _ __ ___ ___ _ _ ___| |_ ___ ___| |__
// / _ \ '_ ` _ \/ __| | | / __| __/ _ \/ __| '_ \.
// | __/ | | | | \__ \ |_| \__ \ || __/ (__| | | |
// \___|_| |_| |_|___/\__, |___/\__\___|\___|_| |_|
// __/ |
// |___/ Engineering (www.emsystech.de)
//
// Filename:
// Description:
//
// Open Source Licensing
//
// 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.
//
// You should have received a copy of the GNU General Public License along with this program.
// If not, see <http://www.gnu.org/licenses/>.
//
// Dieses Programm ist Freie Software: Sie können es unter den Bedingungen der GNU General Public
// License, wie von der Free Software Foundation, Version 3 der Lizenz oder (nach Ihrer Option)
// jeder späteren veröffentlichten Version, weiterverbreiten und/oder modifizieren.
//
// Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, aber OHNE JEDE GEWÄHRLEISTUNG,
// bereitgestellt; sogar ohne die implizite Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR
// EINEN BESTIMMTEN ZWECK. Siehe die GNU General Public License für weitere Details.
//
// Sie sollten eine Kopie der GNU General Public License zusammen mit diesem Programm erhalten
// haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
//
// Author: Martin Steppuhn
// History: 05.11.2012 Initial version V0.9.0
//--------------------------------------------------------------------------------------------------
#ifndef LCD_H
#define LCD_H
//=== Includes =====================================================================================
#include "std_c.h"
//=== Preprocessing directives (#define) ===========================================================
#define LCD_WIDTH 128
#define LCD_HEIGHT 64
#define LCD_X_OFFSET 4 // Pixel Offset
//=== Type definitions (typedef) ===================================================================
//=== Global constants (extern) ====================================================================
//=== Global variables (extern) ====================================================================
//=== Global function prototypes ===================================================================
void LCD_ClearScreen(void);
void LCD_SetPenColor(uint8 c);
void LCD_SetFillColor(int8 c);
void LCD_SetFont(uint8 f);
void LCD_SetContrast(uint8 contrast);
void LCD_PutPixel(uint8 x,uint8 y,uint8 color);
void LCD_DrawLine(uint8 x0,uint8 y0,uint8 x1,uint8 y1);
void LCD_DrawCircle(uint8 x0,uint8 y0,uint8 radius);
void LCD_DrawEllipse(int xm, int ym, int a, int b);
void LCD_DrawRect(uint8 x0,uint8 y0,uint8 x1,uint8 y1,uint8 line);
void LCD_PrintXY(uint8 x,uint8 y,char *s);
void LCD_DrawBitmap(uint8 x0,uint8 y0,const uint8 *bmp);
void LCD_Init(void);
void LCD_WriteFramebuffer(void);
#endif