mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 05:52:12 +00:00
1. Generic GPIO based backlight driver 2. Generic PWM based backlight driver 3. Simple framebuffer support 4. Standard 224-color RT-Thread logo 5. Standard 224-color RT-Thread white logo Signed-off-by: GuEe-GUI <2991707448@qq.com>
21 lines
438 B
Python
21 lines
438 B
Python
from building import *
|
|
|
|
group = []
|
|
|
|
if not GetDepend(['RT_GRAPHIC_BACKLIGHT']):
|
|
Return('group')
|
|
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd + '/../../include']
|
|
|
|
src = ['backlight.c']
|
|
|
|
if GetDepend(['RT_GRAPHIC_BACKLIGHT_GPIO']):
|
|
src += ['backlight-gpio.c']
|
|
|
|
if GetDepend(['RT_GRAPHIC_BACKLIGHT_PWM']):
|
|
src += ['backlight-pwm.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
Return('group')
|