物联网操作系统AliOS Things 3.3 |
模块 | |
| 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) |
| int32_t udisplay_disable_backlight | ( | void | ) |
udispaly disable backlight the framebuffer need get from drivers
@retrun bright value on success, otherwise will be failed.
| int32_t udisplay_enable_backlight | ( | void | ) |
udispaly enable backlight the framebuffer need get from drivers
@retrun bright value on success, otherwise will be failed.
| 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.
| uint8_t* udisplay_get_framebuffer | ( | void | ) |
udispaly get framebuffer from drivers.
@retrun buffer on success, otherwise will return NULL.
| int32_t udisplay_init | ( | void | ) |
Init the udisplay module.
@retrun 0 on success, otherwise will be failed.
| int32_t udisplay_set_brightness | ( | int32_t | brightness | ) |
udispaly set bright before it need enable backlight the framebuffer need get from drivers
| [in] | brightness | brightness value |
@retrun 0 on success, otherwise will be failed.
| int32_t udisplay_show | ( | void | ) |
udispaly show (the buffer get from udisplay_get_framebuffer function).
@retrun 0 on success, otherwise will be failed.
| 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] | buf | Graphic Framebuffer |
| [in] | x | x coordinate |
| [in] | y | y coordinate |
| [in] | w | Graphic Wide |
| [in] | h | Graphic High |
| [in] | rotate | Rotate (set true or false, The rotation angle is determined by the drivers) |