Go to the documentation of this file.
35 #include "mikrosdk_version.h"
38 #if mikroSDK_GET_VERSION < 20800ul
39 #include "rcu_delays.h"
45 #include "drv_digital_out.h"
46 #include "drv_digital_in.h"
47 #include "drv_spi_master.h"
70 #define IPSDISPLAY_CMD_NOP 0x00
71 #define IPSDISPLAY_CMD_SWRESET 0x01
72 #define IPSDISPLAY_CMD_RDDID 0x04
73 #define IPSDISPLAY_CMD_RDDST 0x09
74 #define IPSDISPLAY_CMD_RDDPM 0x0A
75 #define IPSDISPLAY_CMD_RDDMADCTL 0x0B
76 #define IPSDISPLAY_CMD_RDDCOLMOD 0x0C
77 #define IPSDISPLAY_CMD_RDDIM 0x0D
78 #define IPSDISPLAY_CMD_RDDSM 0x0E
79 #define IPSDISPLAY_CMD_RDDSDR 0x0F
80 #define IPSDISPLAY_CMD_SLPIN 0x10
81 #define IPSDISPLAY_CMD_SLPOUT 0x11
82 #define IPSDISPLAY_CMD_PTLON 0x12
83 #define IPSDISPLAY_CMD_NORON 0x13
84 #define IPSDISPLAY_CMD_INVOFF 0x20
85 #define IPSDISPLAY_CMD_INVON 0x21
86 #define IPSDISPLAY_CMD_GAMSET 0x26
87 #define IPSDISPLAY_CMD_DISPOFF 0x28
88 #define IPSDISPLAY_CMD_DISPON 0x29
89 #define IPSDISPLAY_CMD_CASET 0x2A
90 #define IPSDISPLAY_CMD_RASET 0x2B
91 #define IPSDISPLAY_CMD_RAMWR 0x2C
92 #define IPSDISPLAY_CMD_RAMRD 0x2E
93 #define IPSDISPLAY_CMD_PTLAR 0x30
94 #define IPSDISPLAY_CMD_VSCRDEF 0x33
95 #define IPSDISPLAY_CMD_TEOFF 0x34
96 #define IPSDISPLAY_CMD_TEON 0x35
97 #define IPSDISPLAY_CMD_MADCTL 0x36
98 #define IPSDISPLAY_CMD_VSCRSADD 0x37
99 #define IPSDISPLAY_CMD_IDMOFF 0x38
100 #define IPSDISPLAY_CMD_IDMON 0x39
101 #define IPSDISPLAY_CMD_COLMOD 0x3A
102 #define IPSDISPLAY_CMD_RAMWRC 0x3C
103 #define IPSDISPLAY_CMD_RAMRDC 0x3E
104 #define IPSDISPLAY_CMD_TESCAN 0x44
105 #define IPSDISPLAY_CMD_RDTESCAN 0x45
106 #define IPSDISPLAY_CMD_WRDISBV 0x51
107 #define IPSDISPLAY_CMD_RDDISBV 0x52
108 #define IPSDISPLAY_CMD_WRCTRLD 0x53
109 #define IPSDISPLAY_CMD_RDCTRLD 0x54
110 #define IPSDISPLAY_CMD_WRCACE 0x55
111 #define IPSDISPLAY_CMD_RDCABC 0x56
112 #define IPSDISPLAY_CMD_WRCABCMB 0x5E
113 #define IPSDISPLAY_CMD_RDCABCMB 0x5F
114 #define IPSDISPLAY_CMD_RDABCSDR 0x68
115 #define IPSDISPLAY_CMD_RDID1 0xDA
116 #define IPSDISPLAY_CMD_RDID2 0xDB
117 #define IPSDISPLAY_CMD_RDID3 0xDC
123 #define IPSDISPLAY_CMD_RAMCTRL 0xB0
124 #define IPSDISPLAY_CMD_RGBCTRL 0xB1
125 #define IPSDISPLAY_CMD_PORCTRL 0xB2
126 #define IPSDISPLAY_CMD_FRCTRL1 0xB3
127 #define IPSDISPLAY_CMD_PARCTRL 0xB5
128 #define IPSDISPLAY_CMD_GCTRL 0xB7
129 #define IPSDISPLAY_CMD_GTADJ 0xB8
130 #define IPSDISPLAY_CMD_DGMEN 0xBA
131 #define IPSDISPLAY_CMD_VCOMS 0xBB
132 #define IPSDISPLAY_CMD_POWSAVE 0xBC
133 #define IPSDISPLAY_CMD_DLPOFFSAVE 0xBD
134 #define IPSDISPLAY_CMD_LCMCTRL 0xC0
135 #define IPSDISPLAY_CMD_IDSET 0xC1
136 #define IPSDISPLAY_CMD_VDVVRHEN 0xC2
137 #define IPSDISPLAY_CMD_VRHS 0xC3
138 #define IPSDISPLAY_CMD_VDVSET 0xC4
139 #define IPSDISPLAY_CMD_VCMOFSET 0xC5
140 #define IPSDISPLAY_CMD_FRCTR2 0xC6
141 #define IPSDISPLAY_CMD_CABCCTRL 0xC7
142 #define IPSDISPLAY_CMD_REGSEL1 0xC8
143 #define IPSDISPLAY_CMD_REGSEL2 0xCA
144 #define IPSDISPLAY_CMD_PWMFRSEL 0xCC
145 #define IPSDISPLAY_CMD_PWCTRL1 0xD0
146 #define IPSDISPLAY_CMD_VAPVANEN 0xD2
147 #define IPSDISPLAY_CMD_CMD2EN0 0xDF
148 #define IPSDISPLAY_CMD_CMD2EN1 0x5A
149 #define IPSDISPLAY_CMD_CMD2EN2 0x69
150 #define IPSDISPLAY_CMD_CMD2EN3 0x02
151 #define IPSDISPLAY_CMD_PVGAMCTRL 0xE0
152 #define IPSDISPLAY_CMD_NVGAMCTRL 0xE1
153 #define IPSDISPLAY_CMD_DGMLUTR 0xE2
154 #define IPSDISPLAY_CMD_DGMLUTB 0xE3
155 #define IPSDISPLAY_CMD_GATECTRL 0xE4
156 #define IPSDISPLAY_CMD_SPI2EN 0xE7
157 #define IPSDISPLAY_CMD_PWCTRL2 0xE8
158 #define IPSDISPLAY_CMD_EQCTRL 0xE9
159 #define IPSDISPLAY_CMD_PROMCTRL 0xEC
160 #define IPSDISPLAY_CMD_PROMEN 0xFA
161 #define IPSDISPLAY_CMD_NVMSET 0xFC
162 #define IPSDISPLAY_CMD_PROMACT 0xFE
180 #define IPSDISPLAY_MADCTL_DEFAULT 0x00
181 #define IPSDISPLAY_MADCTL_MY 0x80
182 #define IPSDISPLAY_MADCTL_MX 0x40
183 #define IPSDISPLAY_MADCTL_MV 0x20
184 #define IPSDISPLAY_MADCTL_ML 0x10
185 #define IPSDISPLAY_MADCTL_RGB 0x08
186 #define IPSDISPLAY_MADCTL_MH 0x04
192 #define IPSDISPLAY_COLMOD_RGB_65K 0x50
193 #define IPSDISPLAY_COLMOD_RGB_262K 0x60
194 #define IPSDISPLAY_COLMOD_RGB_MASK 0x70
195 #define IPSDISPLAY_COLMOD_CTRL_12BIT_PIXEL 0x03
196 #define IPSDISPLAY_COLMOD_CTRL_16BIT_PIXEL 0x05
197 #define IPSDISPLAY_COLMOD_CTRL_18BIT_PIXEL 0x06
198 #define IPSDISPLAY_COLMOD_CTRL_16M_TRUNCATED 0x07
199 #define IPSDISPLAY_COLMOD_CTRL_MASK 0x07
205 #define IPSDISPLAY_PORCTRL_0_BPA_DEFAULT 0x0C
206 #define IPSDISPLAY_PORCTRL_0_BPA_MASK 0x7F
207 #define IPSDISPLAY_PORCTRL_1_FPA_DEFAULT 0x0C
208 #define IPSDISPLAY_PORCTRL_1_FPA_MASK 0x7F
209 #define IPSDISPLAY_PORCTRL_2_PSEN_DISABLE 0x00
210 #define IPSDISPLAY_PORCTRL_2_PSEN_ENABLE 0x01
211 #define IPSDISPLAY_PORCTRL_3_BPB_DEFAULT 0x30
212 #define IPSDISPLAY_PORCTRL_3_BPB_MASK 0xF0
213 #define IPSDISPLAY_PORCTRL_3_FPB_DEFAULT 0x03
214 #define IPSDISPLAY_PORCTRL_3_FPB_MASK 0x0F
215 #define IPSDISPLAY_PORCTRL_4_BPC_DEFAULT 0x30
216 #define IPSDISPLAY_PORCTRL_4_BPC_MASK 0xF0
217 #define IPSDISPLAY_PORCTRL_4_FPC_DEFAULT 0x03
218 #define IPSDISPLAY_PORCTRL_4_FPC_MASK 0x0F
224 #define IPSDISPLAY_GCTRL_VGHS_DEFAULT 0x30
225 #define IPSDISPLAY_GCTRL_VGHS_MASK 0x70
226 #define IPSDISPLAY_GCTRL_VGLS_DEFAULT 0x05
227 #define IPSDISPLAY_GCTRL_VGLS_MASK 0x07
233 #define IPSDISPLAY_VCOMS_VCOM_DEFAULT 0x19
234 #define IPSDISPLAY_VCOMS_VCOM_MASK 0x3F
240 #define IPSDISPLAY_LCMCTRL_XMY 0x40
241 #define IPSDISPLAY_LCMCTRL_XBGR 0x20
242 #define IPSDISPLAY_LCMCTRL_XINV 0x10
243 #define IPSDISPLAY_LCMCTRL_XMX 0x08
244 #define IPSDISPLAY_LCMCTRL_XMH 0x04
245 #define IPSDISPLAY_LCMCTRL_XMV 0x02
246 #define IPSDISPLAY_LCMCTRL_XGS 0x01
252 #define IPSDISPLAY_VDVVRHEN_CMDEN_DISABLE 0x00
253 #define IPSDISPLAY_VDVVRHEN_CMDEN_ENABLE 0x01
259 #define IPSDISPLAY_VRHS_DEFAULT 0x12
260 #define IPSDISPLAY_VRHS_MASK 0x3F
266 #define IPSDISPLAY_VDVSET_DEFAULT 0x20
267 #define IPSDISPLAY_VDVSET_MASK 0x3F
273 #define IPSDISPLAY_FRCTR2_NLA_DEFAULT 0x00
274 #define IPSDISPLAY_FRCTR2_NLA_MASK 0xE0
275 #define IPSDISPLAY_FRCTR2_RTNA_DEFAULT 0x0F
276 #define IPSDISPLAY_FRCTR2_RTNA_MASK 0x1F
282 #define IPSDISPLAY_PWCTRL1_0_DEFAULT 0xA4
283 #define IPSDISPLAY_PWCTRL1_1_AVDD_DEFAULT 0x80
284 #define IPSDISPLAY_PWCTRL1_1_AVDD_MASK 0xC0
285 #define IPSDISPLAY_PWCTRL1_1_AVCL_DEFAULT 0x20
286 #define IPSDISPLAY_PWCTRL1_1_AVCL_MASK 0x30
287 #define IPSDISPLAY_PWCTRL1_1_VDS_DEFAULT 0x01
288 #define IPSDISPLAY_PWCTRL1_1_VDS_MASK 0x03
294 #define IPSDISPLAY_PVGAMCTRL_0_V63P_DEFAULT 0xD0
295 #define IPSDISPLAY_PVGAMCTRL_0_V63P_MASK 0xF0
296 #define IPSDISPLAY_PVGAMCTRL_0_V0P_DEFAULT 0x00
297 #define IPSDISPLAY_PVGAMCTRL_0_V0P_MASK 0x0F
298 #define IPSDISPLAY_PVGAMCTRL_1_V1P_DEFAULT 0x04
299 #define IPSDISPLAY_PVGAMCTRL_1_V1P_MASK 0x3F
300 #define IPSDISPLAY_PVGAMCTRL_2_V2P_DEFAULT 0x0D
301 #define IPSDISPLAY_PVGAMCTRL_2_V2P_MASK 0x3F
302 #define IPSDISPLAY_PVGAMCTRL_3_V4P_DEFAULT 0x11
303 #define IPSDISPLAY_PVGAMCTRL_3_V4P_MASK 0x1F
304 #define IPSDISPLAY_PVGAMCTRL_4_V6P_DEFAULT 0x13
305 #define IPSDISPLAY_PVGAMCTRL_4_V6P_MASK 0x1F
306 #define IPSDISPLAY_PVGAMCTRL_5_J0P_DEFAULT 0x20
307 #define IPSDISPLAY_PVGAMCTRL_5_J0P_MASK 0x30
308 #define IPSDISPLAY_PVGAMCTRL_5_J13P_DEFAULT 0x0B
309 #define IPSDISPLAY_PVGAMCTRL_5_J13P_MASK 0x0F
310 #define IPSDISPLAY_PVGAMCTRL_6_V20P_DEFAULT 0x3F
311 #define IPSDISPLAY_PVGAMCTRL_6_V20P_MASK 0x7F
312 #define IPSDISPLAY_PVGAMCTRL_7_V36P_DEFAULT 0x50
313 #define IPSDISPLAY_PVGAMCTRL_7_V36P_MASK 0x70
314 #define IPSDISPLAY_PVGAMCTRL_7_V27P_DEFAULT 0x04
315 #define IPSDISPLAY_PVGAMCTRL_7_V27P_MASK 0x07
316 #define IPSDISPLAY_PVGAMCTRL_8_V43P_DEFAULT 0x4C
317 #define IPSDISPLAY_PVGAMCTRL_8_V43P_MASK 0x7F
318 #define IPSDISPLAY_PVGAMCTRL_9_J1P_DEFAULT 0x10
319 #define IPSDISPLAY_PVGAMCTRL_9_11P_MASK 0x30
320 #define IPSDISPLAY_PVGAMCTRL_9_V50P_DEFAULT 0x08
321 #define IPSDISPLAY_PVGAMCTRL_9_V50P_MASK 0x0F
322 #define IPSDISPLAY_PVGAMCTRL_10_V57P_DEFAULT 0x0D
323 #define IPSDISPLAY_PVGAMCTRL_10_V57P_MASK 0x1F
324 #define IPSDISPLAY_PVGAMCTRL_11_V59P_DEFAULT 0x0B
325 #define IPSDISPLAY_PVGAMCTRL_11_V59P_MASK 0x1F
326 #define IPSDISPLAY_PVGAMCTRL_12_V61P_DEFAULT 0x1F
327 #define IPSDISPLAY_PVGAMCTRL_12_V61P_MASK 0x3F
328 #define IPSDISPLAY_PVGAMCTRL_13_V62P_DEFAULT 0x23
329 #define IPSDISPLAY_PVGAMCTRL_13_V62P_MASK 0x3F
335 #define IPSDISPLAY_NVGAMCTRL_0_V63N_DEFAULT 0xD0
336 #define IPSDISPLAY_NVGAMCTRL_0_V63N_MASK 0xF0
337 #define IPSDISPLAY_NVGAMCTRL_0_V0N_DEFAULT 0x00
338 #define IPSDISPLAY_NVGAMCTRL_0_V0N_MASK 0x0F
339 #define IPSDISPLAY_NVGAMCTRL_1_V1N_DEFAULT 0x04
340 #define IPSDISPLAY_NVGAMCTRL_1_V1N_MASK 0x3F
341 #define IPSDISPLAY_NVGAMCTRL_2_V2N_DEFAULT 0x0C
342 #define IPSDISPLAY_NVGAMCTRL_2_V2N_MASK 0x3F
343 #define IPSDISPLAY_NVGAMCTRL_3_V4N_DEFAULT 0x11
344 #define IPSDISPLAY_NVGAMCTRL_3_V4N_MASK 0x1F
345 #define IPSDISPLAY_NVGAMCTRL_4_V6N_DEFAULT 0x13
346 #define IPSDISPLAY_NVGAMCTRL_4_V6N_MASK 0x1F
347 #define IPSDISPLAY_NVGAMCTRL_5_J0N_DEFAULT 0x20
348 #define IPSDISPLAY_NVGAMCTRL_5_J0N_MASK 0x30
349 #define IPSDISPLAY_NVGAMCTRL_5_J13N_DEFAULT 0x0C
350 #define IPSDISPLAY_NVGAMCTRL_5_J13N_MASK 0x0F
351 #define IPSDISPLAY_NVGAMCTRL_6_V20N_DEFAULT 0x3F
352 #define IPSDISPLAY_NVGAMCTRL_6_V20N_MASK 0x7F
353 #define IPSDISPLAY_NVGAMCTRL_7_V36N_DEFAULT 0x40
354 #define IPSDISPLAY_NVGAMCTRL_7_V36N_MASK 0x70
355 #define IPSDISPLAY_NVGAMCTRL_7_V27N_DEFAULT 0x04
356 #define IPSDISPLAY_NVGAMCTRL_7_V27N_MASK 0x07
357 #define IPSDISPLAY_NVGAMCTRL_8_V43N_DEFAULT 0x51
358 #define IPSDISPLAY_NVGAMCTRL_8_V43N_MASK 0x7F
359 #define IPSDISPLAY_NVGAMCTRL_9_J1N_DEFAULT 0x20
360 #define IPSDISPLAY_NVGAMCTRL_9_11N_MASK 0x30
361 #define IPSDISPLAY_NVGAMCTRL_9_V50N_DEFAULT 0x0F
362 #define IPSDISPLAY_NVGAMCTRL_9_V50N_MASK 0x0F
363 #define IPSDISPLAY_NVGAMCTRL_10_V57N_DEFAULT 0x1F
364 #define IPSDISPLAY_NVGAMCTRL_10_V57N_MASK 0x1F
365 #define IPSDISPLAY_NVGAMCTRL_11_V59N_DEFAULT 0x1F
366 #define IPSDISPLAY_NVGAMCTRL_11_V59N_MASK 0x1F
367 #define IPSDISPLAY_NVGAMCTRL_12_V61N_DEFAULT 0x20
368 #define IPSDISPLAY_NVGAMCTRL_12_V61N_MASK 0x3F
369 #define IPSDISPLAY_NVGAMCTRL_13_V62N_DEFAULT 0x23
370 #define IPSDISPLAY_NVGAMCTRL_13_V62N_MASK 0x3F
376 #define IPSDISPLAY_RES_WIDTH 135
377 #define IPSDISPLAY_RES_HEIGHT 240
378 #define IPSDISPLAY_NUM_PIXELS ( ( uint16_t ) IPSDISPLAY_RES_WIDTH * IPSDISPLAY_RES_HEIGHT )
384 #define IPSDISPLAY_POS_WIDTH_MIN 0
385 #define IPSDISPLAY_POS_WIDTH_MAX ( IPSDISPLAY_RES_WIDTH - 1 )
386 #define IPSDISPLAY_POS_HEIGHT_MIN 0
387 #define IPSDISPLAY_POS_HEIGHT_MAX ( IPSDISPLAY_RES_HEIGHT - 1 )
388 #define IPSDISPLAY_POS_OFFSET_LEFT 52
389 #define IPSDISPLAY_POS_OFFSET_RIGHT 53
390 #define IPSDISPLAY_POS_OFFSET_UP 40
391 #define IPSDISPLAY_POS_OFFSET_DOWN 40
397 #define IPSDISPLAY_FONT_WIDTH 6
398 #define IPSDISPLAY_FONT_HEIGHT 12
399 #define IPSDISPLAY_FONT_TEXT_SPACE 1
400 #define IPSDISPLAY_FONT_ASCII_OFFSET 32
401 #define IPSDISPLAY_FONT_WIDTH_MSB 0x80
407 #define IPSDISPLAY_ROTATION_VERTICAL_0 0
408 #define IPSDISPLAY_ROTATION_VERTICAL_180 1
409 #define IPSDISPLAY_ROTATION_HORIZONTAL_0 2
410 #define IPSDISPLAY_ROTATION_HORIZONTAL_180 3
416 #define IPSDISPLAY_COLOR_BLACK 0x0000
417 #define IPSDISPLAY_COLOR_WHITE 0xFFFF
418 #define IPSDISPLAY_COLOR_RED 0xF800
419 #define IPSDISPLAY_COLOR_LIME 0x07E0
420 #define IPSDISPLAY_COLOR_BLUE 0x001F
421 #define IPSDISPLAY_COLOR_YELLOW 0xFFE0
422 #define IPSDISPLAY_COLOR_CYAN 0x07FF
423 #define IPSDISPLAY_COLOR_MAGENTA 0xF81F
424 #define IPSDISPLAY_COLOR_SILVER 0xBDF7
425 #define IPSDISPLAY_COLOR_GRAY 0x8410
426 #define IPSDISPLAY_COLOR_MAROON 0x8000
427 #define IPSDISPLAY_COLOR_OLIVE 0x8400
428 #define IPSDISPLAY_COLOR_GREEN 0x0400
429 #define IPSDISPLAY_COLOR_PURPLE 0x8010
430 #define IPSDISPLAY_COLOR_TEAL 0x0410
431 #define IPSDISPLAY_COLOR_NAVY 0x0010
441 #define IPSDISPLAY_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE
442 #define IPSDISPLAY_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE
460 #define IPSDISPLAY_MAP_MIKROBUS( cfg, mikrobus ) \
461 cfg.miso = MIKROBUS( mikrobus, MIKROBUS_MISO ); \
462 cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI ); \
463 cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
464 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
465 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
466 cfg.dc = MIKROBUS( mikrobus, MIKROBUS_INT )
837 #endif // IPSDISPLAY_H
err_t ipsdisplay_draw_circle(ipsdisplay_t *ctx, ipsdisplay_point_t center_pt, uint8_t radius, uint16_t color)
IPS Display draw circle function.
digital_out_t rst
Definition: ipsdisplay.h:478
pin_name_t cs
Definition: ipsdisplay.h:499
uint32_t spi_speed
Definition: ipsdisplay.h:506
pin_name_t rst
Definition: ipsdisplay.h:502
IPS Display Click point coordinates object.
Definition: ipsdisplay.h:516
digital_out_t cs
Definition: ipsdisplay.h:480
This file contains SPI specific macros, functions, etc.
void ipsdisplay_reset_device(ipsdisplay_t *ctx)
IPS Display reset device function.
err_t ipsdisplay_write_cmd(ipsdisplay_t *ctx, uint8_t cmd)
IPS Display write cmd function.
IPS Display Click configuration object.
Definition: ipsdisplay.h:494
err_t ipsdisplay_draw_rectangle(ipsdisplay_t *ctx, ipsdisplay_point_t start_pt, ipsdisplay_point_t end_pt, uint16_t color)
IPS Display draw rectangle function.
IPS Display Click context object.
Definition: ipsdisplay.h:476
uint8_t rotation
Definition: ipsdisplay.h:485
err_t ipsdisplay_write_char(ipsdisplay_t *ctx, ipsdisplay_point_t start_pt, uint8_t data_in, uint16_t color)
IPS Display write char function.
pin_name_t sck
Definition: ipsdisplay.h:498
uint16_t y
Definition: ipsdisplay.h:518
err_t ipsdisplay_draw_picture(ipsdisplay_t *ctx, uint8_t rotation, const uint16_t *image)
IPS Display draw picture function.
err_t ipsdisplay_init(ipsdisplay_t *ctx, ipsdisplay_cfg_t *cfg)
IPS Display initialization function.
void ipsdisplay_cfg_setup(ipsdisplay_cfg_t *cfg)
IPS Display configuration object setup function.
err_t ipsdisplay_draw_line(ipsdisplay_t *ctx, ipsdisplay_point_t start_pt, ipsdisplay_point_t end_pt, uint16_t color)
IPS Display draw line function.
@ IPSDISPLAY_OK
Definition: ipsdisplay.h:528
@ IPSDISPLAY_ERROR
Definition: ipsdisplay.h:529
spi_master_t spi
Definition: ipsdisplay.h:483
err_t ipsdisplay_set_rotation(ipsdisplay_t *ctx, uint8_t rotation)
IPS Display set rotation function.
void ipsdisplay_disable_device(ipsdisplay_t *ctx)
IPS Display disable device function.
err_t ipsdisplay_default_cfg(ipsdisplay_t *ctx)
IPS Display default configuration function.
pin_name_t miso
Definition: ipsdisplay.h:496
digital_out_t dc
Definition: ipsdisplay.h:479
uint16_t x
Definition: ipsdisplay.h:517
pin_name_t mosi
Definition: ipsdisplay.h:497
err_t ipsdisplay_write_string(ipsdisplay_t *ctx, ipsdisplay_point_t start_pt, uint8_t *data_in, uint16_t color)
IPS Display write string function.
err_t ipsdisplay_draw_pixel(ipsdisplay_t *ctx, ipsdisplay_point_t start_pt, uint16_t color)
IPS Display draw pixel function.
void ipsdisplay_enable_device(ipsdisplay_t *ctx)
IPS Display enable device function.
spi_master_mode_t spi_mode
Definition: ipsdisplay.h:507
void ipsdisplay_enter_data_mode(ipsdisplay_t *ctx)
IPS Display enter data mode function.
void ipsdisplay_enter_cmd_mode(ipsdisplay_t *ctx)
IPS Display enter cmd mode function.
err_t ipsdisplay_fill_screen(ipsdisplay_t *ctx, uint16_t color)
IPS Display fill screen function.
err_t ipsdisplay_write_cmd_par(ipsdisplay_t *ctx, uint8_t cmd, uint8_t *data_in, uint8_t len)
IPS Display write cmd par function.
ipsdisplay_return_value_t
IPS Display Click return value data.
Definition: ipsdisplay.h:527
err_t ipsdisplay_write_data(ipsdisplay_t *ctx, uint16_t *data_in, uint16_t len)
IPS Display write data function.
err_t ipsdisplay_set_pos(ipsdisplay_t *ctx, ipsdisplay_point_t start_pt, ipsdisplay_point_t end_pt)
IPS Display set pos function.
pin_name_t dc
Definition: ipsdisplay.h:503