20 lines
318 B
C
20 lines
318 B
C
|
#include <rtthread.h>
|
||
|
|
||
|
#if defined(RT_USING_RTGUI) || defined(RT_USING_GUIENGINE)
|
||
|
|
||
|
#include <rtgui/driver.h>
|
||
|
int lcd_init(void)
|
||
|
{
|
||
|
struct rt_device *device;
|
||
|
device = rt_device_find("lcd");
|
||
|
if (device)
|
||
|
{
|
||
|
rtgui_graphic_set_device(device);
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
INIT_APP_EXPORT(lcd_init);
|
||
|
|
||
|
#endif
|