drv_lcd.h 624 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-04-12 RT-Thread the first version
  9. * 2023-09-02 zbtrs support SDL2
  10. */
  11. #ifndef __DRV_LCD_H__
  12. #define __DRV_LCD_H__
  13. #include <stdint.h>
  14. #include "drivers/lcd.h"
  15. #define REVERSE_X (1<<0)
  16. #define REVERSE_Y (1<<1)
  17. #define REVERSE_MODE (1<<2)
  18. int rt_hw_lcd_init(void);
  19. rt_uint8_t get_lcd_backlight(void);
  20. void set_lcd_backlight(rt_uint8_t value);
  21. void turn_down_lcd_backlight(void);
  22. void turn_on_lcd_backlight(void);
  23. #endif