LPCOpen Platform for LPC18XX/43XX microcontrollers: C:/w/lpcopen_docs/software/lpc_core/lpc_board/board_common/lcd_st7565s.h Source File

| LPCOpen Platform for LPC18XX/43XX microcontrollers 18XX43XX LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

lcd_st7565s.h
Go to the documentation of this file.
1 /*
2 * @brief LPCXpresso shield board LCD APIs
3 *
4 * @note
5 * Copyright(C) NXP Semiconductors, 2013
6 * All rights reserved.
7 *
8 * @par
9 * Software that is described herein is for illustrative purposes only
10 * which provides customers with programming information regarding the
11 * LPC products. This software is supplied "AS IS" without any warranties of
12 * any kind, and NXP Semiconductors and its licensor disclaim any and
13 * all warranties, express or implied, including all implied warranties of
14 * merchantability, fitness for a particular purpose and non-infringement of
15 * intellectual property rights. NXP Semiconductors assumes no responsibility
16 * or liability for the use of the software, conveys no license or rights under any
17 * patent, copyright, mask work right, or any other intellectual property rights in
18 * or to any products. NXP Semiconductors reserves the right to make changes
19 * in the software without notification. NXP Semiconductors also makes no
20 * representation or warranty that such application will be suitable for the
21 * specified use without further testing or modification.
22 *
23 * @par
24 * Permission to use, copy, modify, and distribute this software and its
25 * documentation is hereby granted, under NXP Semiconductors' and its
26 * licensor's relevant copyrights in the software, without fee, provided that it
27 * is used in conjunction with NXP Semiconductors microcontrollers. This
28 * copyright, permission, and disclaimer notice must appear in all copies of
29 * this code.
30 */
31
32 #ifndef __LCD_ST7565S_H_
33 #define __LCD_ST7565S_H_
34
35 /* Resolution of the LCD */
36 #ifdef LCD_ORIENT_PORTRAIT
37 #define LCD_X_RES 64
38 #define LCD_Y_RES 128
39 #else
40 #define LCD_X_RES 128
41 #define LCD_Y_RES 64
42 #endif
43
44 /* define structure if lpc_fonts.h not included */
45 #ifndef __LPC_FONTS_H_
46
49 typedef struct {
50 int16_t font_height;
51 uint8_t first_char;
52 uint8_t last_char;
53 uint16_t *font_table;
54 uint8_t *font_width_table;
55 } FONT_T;
56 #define __LPC_FONTS_H_
57 #endif
58
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62
67 void LCD_Init(void);
68
80 void LCD_Refresh(int left, int top, int right, int bottom);
81
89 void LCD_PutPixel(int x, int y, int col);
90
100 void LCD_SetPixel(int x, int y, int col);
101
111 void LCD_DrawRect(int left, int top, int right, int bottom, int col);
112
122 void LCD_FillRect(int left, int top, int right, int bottom, int col);
123
133 void LCD_DrawLine(int x0, int y0, int x1, int y1, int col);
134
140 void LCD_SetFontColor(int color);
141
147 void LCD_SetFontBgColor(int color);
148
154 void LCD_SetFont(const FONT_T *font);
155
164 void LCD_SetFontCharSpace(int space);
165
174 void LCD_SetFontWidth(int width);
175
184 uint32_t LCD_PutCharXY(int xPos, int yPos, int ch);
185
193 void LCD_PutStrXY(int xPos, int yPos, const char *str);
194
195 #ifdef __cplusplus
196 }
197 #endif
198
199 #endif /* __LCD_ST7565S_H_ */