lcd_init.c 497 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-06-12 Tanek first version
  9. */
  10. #include <rtthread.h>
  11. #if defined(PKG_USING_GUIENGINE)
  12. #include <rtgui/driver.h>
  13. int lcd_init(void)
  14. {
  15. struct rt_device *device;
  16. device = rt_device_find("lcd");
  17. if (device)
  18. {
  19. rtgui_graphic_set_device(device);
  20. }
  21. return 0;
  22. }
  23. INIT_ENV_EXPORT(lcd_init);
  24. #endif