mikroSDK Reference Manual
Common TFT Board routines.

Common TFT Board routines. More...

Macros

#define set_column()
 
#define set_page()
 
#define CS_HIGH   (digital_out_high( &pin_cs ))
 
#define CS_LOW   (digital_out_low( &pin_cs ))
 
#define WR_HIGH   (digital_out_high( &pin_wr ))
 
#define WR_LOW   (digital_out_low( &pin_wr ))
 
#define DC_HIGH   (digital_out_high( &pin_dc ))
 
#define DC_LOW   (digital_out_low( &pin_dc ))
 
#define display_deselect()   (CS_HIGH)
 
#define check_touchpad()
 

Macro Definition Documentation

◆ check_touchpad

#define check_touchpad ( )
Value:
(void)tp_press_detect(&tp); \
return (tp.touch.event != TP_EVENT_PRESS_NOT_DET);
tp_event_t tp_press_detect(tp_t *ctx)
Touch Panel Pressure Detector Function.
tp_touch_item_t touch
Definition tp.h:245
@ TP_EVENT_PRESS_NOT_DET
Definition tp.h:85

CS pin handle.

◆ CS_HIGH

#define CS_HIGH   (digital_out_high( &pin_cs ))

Set CS pin low.

◆ CS_LOW

#define CS_LOW   (digital_out_low( &pin_cs ))

Set WR pin high.

◆ DC_HIGH

#define DC_HIGH   (digital_out_high( &pin_dc ))

Set DC pin low.

◆ DC_LOW

#define DC_LOW   (digital_out_low( &pin_dc ))

Deselect display.

◆ display_deselect

#define display_deselect ( )    (CS_HIGH)

Check if touch was detected.

◆ set_column

#define set_column ( )
Value:
uint16_t start_column = act_x1; \
uint16_t end_column = act_x2;

< Set display column to write data to. Set display page to write data to.

◆ set_page

#define set_page ( )
Value:
uint16_t start_page = act_y1; \
uint16_t end_page = act_y2;

Set CS pin high.

◆ WR_HIGH

#define WR_HIGH   (digital_out_high( &pin_wr ))

Set WR pin low.

◆ WR_LOW

#define WR_LOW   (digital_out_low( &pin_wr ))

Set DC pin high.