udisplay

模块

 udisplay_cli
 

函数

int32_t udisplay_init (void)
 
int32_t udisplay_show_rect (uint8_t *buf, uint32_t x, uint32_t y, uint32_t w, uint32_t h, bool rotate)
 
uint8_t * udisplay_get_framebuffer (void)
 
int32_t udisplay_show (void)
 
int32_t udisplay_set_brightness (int32_t brightness)
 
int32_t udisplay_get_brightness (void)
 
int32_t udisplay_enable_backlight (void)
 
int32_t udisplay_disable_backlight (void)
 

详细描述

函数说明

◆ udisplay_disable_backlight()

int32_t udisplay_disable_backlight ( void  )

udispaly disable backlight the framebuffer need get from drivers

@retrun bright value on success, otherwise will be failed.

◆ udisplay_enable_backlight()

int32_t udisplay_enable_backlight ( void  )

udispaly enable backlight the framebuffer need get from drivers

@retrun bright value on success, otherwise will be failed.

◆ udisplay_get_brightness()

int32_t udisplay_get_brightness ( void  )

udispaly get bright value before it need enable backlight the framebuffer need get from drivers

@retrun bright value on success, otherwise will be failed.

◆ udisplay_get_framebuffer()

uint8_t* udisplay_get_framebuffer ( void  )

udispaly get framebuffer from drivers.

@retrun buffer on success, otherwise will return NULL.

◆ udisplay_init()

int32_t udisplay_init ( void  )

Init the udisplay module.

@retrun 0 on success, otherwise will be failed.

◆ udisplay_set_brightness()

int32_t udisplay_set_brightness ( int32_t  brightness)

udispaly set bright before it need enable backlight the framebuffer need get from drivers

参数
[in]brightnessbrightness value

@retrun 0 on success, otherwise will be failed.

◆ udisplay_show()

int32_t udisplay_show ( void  )

udispaly show (the buffer get from udisplay_get_framebuffer function).

@retrun 0 on success, otherwise will be failed.

◆ udisplay_show_rect()

int32_t udisplay_show_rect ( uint8_t *  buf,
uint32_t  x,
uint32_t  y,
uint32_t  w,
uint32_t  h,
bool  rotate 
)

udisplay show rect function.

参数
[in]bufGraphic Framebuffer
[in]xx coordinate
[in]yy coordinate
[in]wGraphic Wide
[in]hGraphic High
[in]rotateRotate (set true or false, The rotation angle is determined by the drivers)
返回
0 on success, negative error on failure.