Select one of the symbols to view example projects that use it.
 
Outline
#define __ST7735_H
#include "../Common/lcd.h"
#define ST7735_LCD_PIXEL_WIDTH
#define ST7735_LCD_PIXEL_HEIGHT
#define LCD_REG_0
#define LCD_REG_1
#define LCD_REG_4
#define LCD_REG_9
#define LCD_REG_10
#define LCD_REG_11
#define LCD_REG_12
#define LCD_REG_13
#define LCD_REG_14
#define LCD_REG_16
#define LCD_REG_17
#define LCD_REG_18
#define LCD_REG_19
#define LCD_REG_32
#define LCD_REG_33
#define LCD_REG_38
#define LCD_REG_40
#define LCD_REG_41
#define LCD_REG_42
#define LCD_REG_43
#define LCD_REG_44
#define LCD_REG_45
#define LCD_REG_46
#define LCD_REG_48
#define LCD_REG_52
#define LCD_REG_53
#define LCD_REG_54
#define LCD_REG_56
#define LCD_REG_57
#define LCD_REG_58
#define LCD_REG_177
#define LCD_REG_178
#define LCD_REG_179
#define LCD_REG_180
#define LCD_REG_192
#define LCD_REG_193
#define LCD_REG_194
#define LCD_REG_195
#define LCD_REG_196
#define LCD_REG_197
#define LCD_REG_199
#define LCD_REG_209
#define LCD_REG_210
#define LCD_REG_217
#define LCD_REG_218
#define LCD_REG_219
#define LCD_REG_220
#define LCD_REG_222
#define LCD_REG_223
#define LCD_REG_224
#define LCD_REG_225
#define LCD_LINE_0
#define LCD_LINE_1
#define LCD_LINE_2
#define LCD_LINE_3
#define LCD_LINE_4
#define LCD_LINE_5
#define LCD_LINE_6
#define LCD_LINE_7
#define LCD_LINE_8
#define LCD_LINE_9
#define LCD_LINE_10
#define LCD_LINE_11
#define LCD_LINE_12
#define LCD_LINE_13
#define LCD_LINE_14
#define LCD_LINE_15
#define LCD_LINE_16
#define LCD_LINE_17
#define LCD_LINE_18
#define LCD_LINE_19
st7735_Init();
st7735_ReadID();
st7735_DisplayOn();
st7735_DisplayOff();
st7735_SetCursor(uint16_t, uint16_t);
st7735_WritePixel(uint16_t, uint16_t, uint16_t);
st7735_WriteReg(uint8_t, uint8_t);
st7735_ReadReg(uint8_t);
st7735_SetDisplayWindow(uint16_t, uint16_t, uint16_t, uint16_t);
st7735_DrawHLine(uint16_t, uint16_t, uint16_t, uint16_t);
st7735_DrawVLine(uint16_t, uint16_t, uint16_t, uint16_t);
st7735_GetLcdPixelWidth();
st7735_GetLcdPixelHeight();
st7735_DrawBitmap(uint16_t, uint16_t, uint8_t *);
st7735_drv;
LCD_IO_Init();
LCD_IO_WriteMultipleData(uint8_t *, uint32_t);
LCD_IO_WriteReg(uint8_t);
LCD_Delay(uint32_t);
Files
loading...
SourceVuSTM32 Libraries and Samplesst7735st7735.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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file st7735.h * @author MCD Application Team * @brief This file contains all the functions prototypes for the st7735.c * driver. ****************************************************************************** * @attention * * Copyright (c) 2014 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __ST7735_H #define __ST7735_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "../Common/lcd.h" /** @addtogroup BSP * @{ *//* ... */ /** @addtogroup Components * @{ *//* ... */ /** @addtogroup ST7735 * @{ *//* ... */ /** @defgroup ST7735_Exported_Types * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup ST7735_Exported_Constants * @{ *//* ... */ /** * @brief ST7735 Size *//* ... */ #define ST7735_LCD_PIXEL_WIDTH ((uint16_t)128) #define ST7735_LCD_PIXEL_HEIGHT ((uint16_t)160) /** * @brief ST7735 Registers *//* ... */ #define LCD_REG_0 0x00 /* No Operation: NOP */ #define LCD_REG_1 0x01 /* Software reset: SWRESET */ #define LCD_REG_4 0x04 /* Read Display ID: RDDID */ #define LCD_REG_9 0x09 /* Read Display Statu: RDDST */ #define LCD_REG_10 0x0A /* Read Display Power: RDDPM */ #define LCD_REG_11 0x0B /* Read Display: RDDMADCTL */ #define LCD_REG_12 0x0C /* Read Display Pixel: RDDCOLMOD */ #define LCD_REG_13 0x0D /* Read Display Image: RDDIM */ #define LCD_REG_14 0x0E /* Read Display Signal: RDDSM */ #define LCD_REG_16 0x10 /* Sleep in & booster off: SLPIN */ #define LCD_REG_17 0x11 /* Sleep out & booster on: SLPOUT */ #define LCD_REG_18 0x12 /* Partial mode on: PTLON */ #define LCD_REG_19 0x13 /* Partial off (Normal): NORON */ #define LCD_REG_32 0x20 /* Display inversion off: INVOFF */ #define LCD_REG_33 0x21 /* Display inversion on: INVON */ #define LCD_REG_38 0x26 /* Gamma curve select: GAMSET */ #define LCD_REG_40 0x28 /* Display off: DISPOFF */ #define LCD_REG_41 0x29 /* Display on: DISPON */ #define LCD_REG_42 0x2A /* Column address set: CASET */ #define LCD_REG_43 0x2B /* Row address set: RASET */ #define LCD_REG_44 0x2C /* Memory write: RAMWR */ #define LCD_REG_45 0x2D /* LUT for 4k,65k,262k color: RGBSET */ #define LCD_REG_46 0x2E /* Memory read: RAMRD*/ #define LCD_REG_48 0x30 /* Partial start/end address set: PTLAR */ #define LCD_REG_52 0x34 /* Tearing effect line off: TEOFF */ #define LCD_REG_53 0x35 /* Tearing effect mode set & on: TEON */ #define LCD_REG_54 0x36 /* Memory data access control: MADCTL */ #define LCD_REG_56 0x38 /* Idle mode off: IDMOFF */ #define LCD_REG_57 0x39 /* Idle mode on: IDMON */ #define LCD_REG_58 0x3A /* Interface pixel format: COLMOD */ #define LCD_REG_177 0xB1 /* In normal mode (Full colors): FRMCTR1 */ #define LCD_REG_178 0xB2 /* In Idle mode (8-colors): FRMCTR2 */ #define LCD_REG_179 0xB3 /* In partial mode + Full colors: FRMCTR3 */ #define LCD_REG_180 0xB4 /* Display inversion control: INVCTR */ #define LCD_REG_192 0xC0 /* Power control setting: PWCTR1 */ #define LCD_REG_193 0xC1 /* Power control setting: PWCTR2 */ #define LCD_REG_194 0xC2 /* In normal mode (Full colors): PWCTR3 */ #define LCD_REG_195 0xC3 /* In Idle mode (8-colors): PWCTR4 */ #define LCD_REG_196 0xC4 /* In partial mode + Full colors: PWCTR5 */ #define LCD_REG_197 0xC5 /* VCOM control 1: VMCTR1 */ #define LCD_REG_199 0xC7 /* Set VCOM offset control: VMOFCTR */ #define LCD_REG_209 0xD1 /* Set LCM version code: WRID2 */ #define LCD_REG_210 0xD2 /* Customer Project code: WRID3 */ #define LCD_REG_217 0xD9 /* NVM control status: NVCTR1 */ #define LCD_REG_218 0xDA /* Read ID1: RDID1 */ #define LCD_REG_219 0xDB /* Read ID2: RDID2 */ #define LCD_REG_220 0xDC /* Read ID3: RDID3 */ #define LCD_REG_222 0xDE /* NVM Read Command: NVCTR2 */ #define LCD_REG_223 0xDF /* NVM Write Command: NVCTR3 */ #define LCD_REG_224 0xE0 /* Set Gamma adjustment (+ polarity): GAMCTRP1 */ #define LCD_REG_225 0xE1 /* Set Gamma adjustment (- polarity): GAMCTRN1 */ /** * @brief LCD Lines depending on the chosen fonts. *//* ... */ #define LCD_LINE_0 LINE(0) #define LCD_LINE_1 LINE(1) #define LCD_LINE_2 LINE(2) #define LCD_LINE_3 LINE(3) #define LCD_LINE_4 LINE(4) #define LCD_LINE_5 LINE(5) #define LCD_LINE_6 LINE(6) #define LCD_LINE_7 LINE(7) #define LCD_LINE_8 LINE(8) #define LCD_LINE_9 LINE(9) #define LCD_LINE_10 LINE(10) #define LCD_LINE_11 LINE(11) #define LCD_LINE_12 LINE(12) #define LCD_LINE_13 LINE(13) #define LCD_LINE_14 LINE(14) #define LCD_LINE_15 LINE(15) #define LCD_LINE_16 LINE(16) #define LCD_LINE_17 LINE(17) #define LCD_LINE_18 LINE(18) #define LCD_LINE_19 LINE(19) 73 defines /** * @} *//* ... */ /** @defgroup ADAFRUIT_SPI_LCD_Exported_Functions * @{ *//* ... */ void st7735_Init(void); uint16_t st7735_ReadID(void); void st7735_DisplayOn(void); void st7735_DisplayOff(void); void st7735_SetCursor(uint16_t Xpos, uint16_t Ypos); void st7735_WritePixel(uint16_t Xpos, uint16_t Ypos, uint16_t RGBCode); void st7735_WriteReg(uint8_t LCDReg, uint8_t LCDRegValue); uint8_t st7735_ReadReg(uint8_t LCDReg); void st7735_SetDisplayWindow(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height); void st7735_DrawHLine(uint16_t RGBCode, uint16_t Xpos, uint16_t Ypos, uint16_t Length); void st7735_DrawVLine(uint16_t RGBCode, uint16_t Xpos, uint16_t Ypos, uint16_t Length); uint16_t st7735_GetLcdPixelWidth(void); uint16_t st7735_GetLcdPixelHeight(void); void st7735_DrawBitmap(uint16_t Xpos, uint16_t Ypos, uint8_t *pbmp); /* LCD driver structure */ extern LCD_DrvTypeDef st7735_drv; /* LCD IO functions */ void LCD_IO_Init(void); void LCD_IO_WriteMultipleData(uint8_t *pData, uint32_t Size); void LCD_IO_WriteReg(uint8_t Reg); void LCD_Delay(uint32_t delay); /** * @} *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __ST7735_H */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.