mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 03:28:53 +08:00
update template
This commit is contained in:
parent
af8eed8024
commit
f1202872f4
@ -11,8 +11,13 @@ function gen() {
|
||||
sed -e "s/{fmt}/$fmt/" -e "s/{FMT}/$FMT/" -e "s/{date}/$DATE/" template/lcd_mem_c.tmpl > lcd_mem_$fmt.c
|
||||
}
|
||||
|
||||
if [ "$1" == "" ]; then
|
||||
FMT="rgb565 bgr565 bgra5551 bgr888 bgra8888 rgba8888"
|
||||
else
|
||||
FMT="$1"
|
||||
fi
|
||||
#supproted formats: rgb565 bgr565 rgb888 bgr888 rgba8888 abgr8888 bgra8888 argb8888
|
||||
for fmt in rgb565 bgr565 bgr888 bgra8888 rgba8888
|
||||
for fmt in ${FMT}
|
||||
do
|
||||
gen $fmt
|
||||
done
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: {fmt} mem lcd.
|
||||
*
|
||||
* Copyright (c) 2018 - 2018 Guangzhou ZHIYUAN Electronics Co.,Ltd.
|
||||
* Copyright (c) 2018 - 2019 Guangzhou ZHIYUAN Electronics Co.,Ltd.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
#define LCD_FORMAT BITMAP_FMT_{FMT}
|
||||
|
||||
#include "base/mem.h"
|
||||
#include "tkc/mem.h"
|
||||
#include "base/pixel.h"
|
||||
#include "lcd/lcd_mem.h"
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Author: AWTK Develop Team
|
||||
* Brief: {fmt} mem lcd.
|
||||
*
|
||||
* Copyright (c) 2018 - 2018 Guangzhou ZHIYUAN Electronics Co.,Ltd.
|
||||
* Copyright (c) 2018 - 2019 Guangzhou ZHIYUAN Electronics Co.,Ltd.
|
||||
*
|
||||
* this program is distributed in the hope that it will be useful,
|
||||
* but without any warranty; without even the implied warranty of
|
||||
|
Loading…
Reference in New Issue
Block a user