RA8871控制器5寸彩屏测试程序,该屏尺寸为5寸分辨率为800*480,接口并口串口可选,控制器为RA8871,中文字库可选,触摸屏可选
HGF05032测试程序如下:
/*************** RAIO Technology Inc. ***************
* file : API_Demo.c
* author : RAIO Application Team
* version : V1.0
* date : 2014/06/11
* brief :
****************************************************/
#include "stdio.h"
#include "stdlib.h"
#include "stm32f10x.h"
#include "delay.h"
#include "UserDef.h"
#include "RA8871_MCU_IF.h"
#include "RA8871.h"
#include "RA8871_API.h"
#include "API_Demo.h"
#include "pic24.h"
#include "pic8.h"
#include "pic16.h"
#include "pic168.h"
#include "pic1616.h"
#include "pic16241.h"
#include "pic1624.h"
#include "8bit_test.h"
#include "16bit_test.h"
#include "8bit_8bpp_icon.h"
#include "8bit_16bpp_icon.h"
#include "8bit_24bpp_icon.h"
#include "16bit_16bpp_icon.h"
#include "16bit_24bpp1_icon.h"
#include "16bit_24bpp2_icon.h"
void API_Demo1(void)
{
Write_Layer(1);
Show_Layer(1);
BTE_Solid_Fill(Layer1,Panel_width,0,0,color65k_red,Panel_width,Panel_length);
delay_ms(500);
BTE_Solid_Fill(Layer1,Panel_width,0,0,color65k_green,Panel_width,Panel_length);
delay_ms(500);
BTE_Solid_Fill(Layer1,Panel_width,0,0,color65k_blue,Panel_width,Panel_length);
delay_ms(500);
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xffff,Panel_width,Panel_length);
delay_ms(500);
API_MPU8_16bpp_Memory_Write_Demo();
delay_ms(500);
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xffff,Panel_width,Panel_length);
API_Print_Internal_Font_String_Demo();
delay_ms(500);
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xffff,Panel_width,Panel_length);
API_Print_GB2312String_Demo();
delay_ms(5000);
BTE_Solid_Fill(Layer1,Panel_width,0,0,color65k_white,Panel_width,Panel_length);
}
void API_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
//clear data to by white color
#ifdef MCU_8bit_ColorDepth_8bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xff,Panel_width,Panel_length);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xffff,Panel_width,Panel_length);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xffffff,Panel_width,Panel_length);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xffff,Panel_width,Panel_length);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xffffff,Panel_width,Panel_length);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xffffff,Panel_width,Panel_length);
#endif
//API_MPU8_8bpp_Memory_Write_Demo();
//API_MPU8_16bpp_Memory_Write_Demo();
//API_MPU8_24bpp_Memory_Write_Demo();
API_MPU16_16bpp_Memory_Write_Demo();
//API_MPU16_24bpp_Mode1_Memory_Write_Demo();
//API_MPU16_24bpp_Mode2_Memory_Write_Demo();
//API_Draw_Line_Demo();
//API_Draw_Triangle_Demo();
//API_Draw_Circle_Demo();
//API_Draw_Ellipse_Demo();
//API_Draw_Curve_Demo();
//API_Draw_Square_Demo();
//API_Draw_Circle_Square_Demo();
//API_PIP_Demo();
//
//API_DMA_24bit_Demo();
//API_DMA_32bit_Demo();
//
//API_BTE_Pattern_Fill_Demo();
//API_BTE_Pattern_Fill_with_Chroma_key_Demo();
//API_BTE_Solid_Fill_Demo();
//API_BTE_Memory_Copy_Demo();
//API_BTE_Memory_Copy_Chroma_key_Demo();
//API_BTE_MCU_Write_MCU_8bit_Demo();
//API_BTE_MCU_Write_MCU_16bit_Demo();
//API_BTE_MCU_Write_Chroma_key_MCU_8bit_Demo();
//API_BTE_MCU_Write_Chroma_key_MCU_16bit_Demo();
//API_BTE_MCU_Write_ColorExpansion_MCU_8bit_Demo();
//API_BTE_MCU_Write_ColorExpansion_Chroma_key_MCU_8bit_Demo();
//API_BTE_MCU_Write_ColorExpansion_MCU_16bit_Demo();
//API_BTE_MCU_Write_ColorExpansion_Chroma_key_MCU_16bit_Demo();
//API_BTE_Alpha_Blending_Demo();
//
API_Print_Internal_Font_String_Demo();
//API_Print_BIG5String_Demo();
//API_Print_GB2312String_Demo();
//API_Print_GB12345String_Demo();
//API_Print_UnicodeString_Demo();
//
//
//PWM_Demo();
//
//RAiO_define_font();
}
void API_MPU8_8bpp_Memory_Write_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
MPU8_8bpp_Memory_Write(0,0,128,128 ,gImage_8);
}
void API_MPU8_16bpp_Memory_Write_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
MPU8_16bpp_Memory_Write (0,0,128,128,gImage_16);
}
void API_MPU8_24bpp_Memory_Write_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
MPU8_24bpp_Memory_Write (0,0,128,128 ,gImage_24);
}
void API_MPU16_16bpp_Memory_Write_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
MPU16_16bpp_Memory_Write (0,0,128,128,pic1616);
MPU16_16bpp_Memory_Write (128,0,128,128,pic1616);
}
void API_MPU16_24bpp_Mode1_Memory_Write_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
MPU16_24bpp_Mode1_Memory_Write(0,0,128,128,pic16241);
}
void API_MPU16_24bpp_Mode2_Memory_Write_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
MPU16_24bpp_Mode2_Memory_Write(0,0,128,128,pic1624);
}
void API_Draw_Line_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Active_Window_XY(0,0);
Active_Window_WH(Panel_width,Panel_length);
#ifdef MCU_8bit_ColorDepth_8bpp
Draw_Line(0xe0,10,10,200,200);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Draw_Line(0xf800,10,10,200,200);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Draw_Line(0xff0000,10,10,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Draw_Line(0xf800,10,10,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Draw_Line(0xff0000,10,10,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Draw_Line(0xff0000,10,10,200,200);
#endif
}
void API_Draw_Triangle_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Active_Window_XY(0,0);
Active_Window_WH(Panel_width,Panel_length);
#ifdef MCU_8bit_ColorDepth_8bpp
Draw_Triangle(0x07,150,0,150,100,250,100);
Draw_Triangle_Fill(0x03,300,0,300,100,400,100);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Draw_Triangle(0x001f,150,0,150,100,250,100);
Draw_Triangle_Fill(0x001f,300,0,300,100,400,100);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Draw_Triangle(0x0000ff,150,0,150,100,250,100);
Draw_Triangle_Fill(0x0000ff,300,0,300,100,400,100);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Draw_Triangle(0x001f,150,0,150,100,250,100);
Draw_Triangle_Fill(0x001f,300,0,300,100,400,100);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Draw_Triangle(0x0000ff,150,0,150,100,250,100);
Draw_Triangle_Fill(0x0000ff,300,0,300,100,400,100);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Draw_Triangle(0x0000ff,150,0,150,100,250,100);
Draw_Triangle_Fill(0x0000ff,300,0,300,100,400,100);
#endif
}
void API_Draw_Circle_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Active_Window_XY(0,0);
Active_Window_WH(Panel_width,Panel_length);
#ifdef MCU_8bit_ColorDepth_8bpp
Draw_Circle(0xfc,100,50,50);
Draw_Circle_Fill(0xfc,250,50,50);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Draw_Circle(0xffe0,100,50,50);
Draw_Circle_Fill(0xffe0,250,50,50);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Draw_Circle(0xffff00,100,50,50);
Draw_Circle_Fill(0xffff00,250,50,50);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Draw_Circle(0xffe0,100,50,50);
Draw_Circle_Fill(0xffe0,250,50,50);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Draw_Circle(0xffff00,100,50,50);
Draw_Circle_Fill(0xffff00,250,50,50);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Draw_Circle(0xffff00,100,50,50);
Draw_Circle_Fill(0xffff00,250,50,50);
#endif
}
void API_Draw_Ellipse_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Active_Window_XY(0,0);
Active_Window_WH(Panel_width,Panel_length);
#ifdef MCU_8bit_ColorDepth_8bpp
Draw_Ellipse(0x1f,100,100,100,50);
Draw_Ellipse_Fill(0x1f,350,100,100,50);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Draw_Ellipse(0x07ff,100,100,100,50); //setting in UserDef.h
Draw_Ellipse_Fill(0x07ff,350,100,100,50);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Draw_Ellipse(0x00ffff,100,100,100,50); //setting in UserDef.h
Draw_Ellipse_Fill(0x00ffff,350,100,100,50);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Draw_Ellipse(0x07ff,100,100,100,50); //setting in UserDef.h
Draw_Ellipse_Fill(0x07ff,350,100,100,50);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Draw_Ellipse(0x00ffff,100,100,100,50); //setting in UserDef.h
Draw_Ellipse_Fill(0x00ffff,350,100,100,50);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Draw_Ellipse(0x00ffff,100,100,100,50); //setting in UserDef.h
Draw_Ellipse_Fill(0x00ffff,350,100,100,50);
#endif
}
void API_Draw_Curve_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Active_Window_XY(0,0);
Active_Window_WH(Panel_width,Panel_length);
#ifdef MCU_8bit_ColorDepth_8bpp
Draw_Left_Up_Curve(0xe3,60,60,50,50);
Draw_Right_Down_Curve(0x00,70,70,50,50);
Draw_Right_Up_Curve(0x00,70,60,50,50);
Draw_Left_Down_Curve(0x1c,60,70,50,50);
Draw_Left_Up_Curve_Fill(0xe3,210,60,50,50);
Draw_Right_Down_Curve_Fill(0x00,220,70,50,50);
Draw_Right_Up_Curve_Fill(0x00,220,60,50,50);
Draw_Left_Down_Curve_Fill(0x1c,210,70,50,50);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Draw_Left_Up_Curve(0xf11f,60,60,50,50);
Draw_Right_Down_Curve(0x0000,70,70,50,50);
Draw_Right_Up_Curve(0x0000,70,60,50,50);
Draw_Left_Down_Curve(0x07e0,60,70,50,50);
Draw_Left_Up_Curve_Fill(0xf11f,210,60,50,50);
Draw_Right_Down_Curve_Fill(0x0000,220,70,50,50);
Draw_Right_Up_Curve_Fill(0x0000,220,60,50,50);
Draw_Left_Down_Curve_Fill(0x07e0,210,70,50,50);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Draw_Left_Up_Curve(0xff00ff,60,60,50,50);
Draw_Right_Down_Curve(0x000000,70,70,50,50);
Draw_Right_Up_Curve(0x000000,70,60,50,50);
Draw_Left_Down_Curve(0x00ff00,60,70,50,50);
Draw_Left_Up_Curve_Fill(0xff00ff,210,60,50,50);
Draw_Right_Down_Curve_Fill(0x000000,220,70,50,50);
Draw_Right_Up_Curve_Fill(0x000000,220,60,50,50);
Draw_Left_Down_Curve_Fill(0x00ff00,210,70,50,50);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Draw_Left_Up_Curve(0xf11f,60,60,50,50);
Draw_Right_Down_Curve(0x0000,70,70,50,50);
Draw_Right_Up_Curve(0x0000,70,60,50,50);
Draw_Left_Down_Curve(0x07e0,60,70,50,50);
Draw_Left_Up_Curve_Fill(0xf11f,210,60,50,50);
Draw_Right_Down_Curve_Fill(0x0000,220,70,50,50);
Draw_Right_Up_Curve_Fill(0x0000,220,60,50,50);
Draw_Left_Down_Curve_Fill(0x07e0,210,70,50,50);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Draw_Left_Up_Curve(0xff00ff,60,60,50,50);
Draw_Right_Down_Curve(0x000000,70,70,50,50);
Draw_Right_Up_Curve(0x000000,70,60,50,50);
Draw_Left_Down_Curve(0x00ff00,60,70,50,50);
Draw_Left_Up_Curve_Fill(0xff00ff,210,60,50,50);
Draw_Right_Down_Curve_Fill(0x000000,220,70,50,50);
Draw_Right_Up_Curve_Fill(0x000000,220,60,50,50);
Draw_Left_Down_Curve_Fill(0x00ff00,210,70,50,50);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Draw_Left_Up_Curve(0xff00ff,60,60,50,50);
Draw_Right_Down_Curve(0x000000,70,70,50,50);
Draw_Right_Up_Curve(0x000000,70,60,50,50);
Draw_Left_Down_Curve(0x00ff00,60,70,50,50);
Draw_Left_Up_Curve_Fill(0xff00ff,210,60,50,50);
Draw_Right_Down_Curve_Fill(0x000000,220,70,50,50);
Draw_Right_Up_Curve_Fill(0x000000,220,60,50,50);
Draw_Left_Down_Curve_Fill(0x00ff00,210,70,50,50);
#endif
}
void API_Draw_Square_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Active_Window_XY(0,0);
Active_Window_WH(Panel_width,Panel_length);
#ifdef MCU_8bit_ColorDepth_8bpp
Draw_Square(0xe0,50,50,150,150);
Draw_Square_Fill(0xe0,200,50,300,150);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Draw_Square(0xf800,50,50,150,150);
Draw_Square_Fill(0xf800,200,50,300,150);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Draw_Square(0xff0000,50,50,150,150);
Draw_Square_Fill(0xff0000,200,50,300,150);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Draw_Square(0xf800,50,50,150,150);
Draw_Square_Fill(0xf800,200,50,300,150);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Draw_Square(0xff0000,50,50,150,150);
Draw_Square_Fill(0xff0000,200,50,300,150);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Draw_Square(0xff0000,50,50,150,150);
Draw_Square_Fill(0xff0000,200,50,300,150);
#endif
}
void API_Draw_Circle_Square_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Active_Window_XY(0,0);
Active_Window_WH(Panel_width,Panel_length);
#ifdef MCU_8bit_ColorDepth_8bpp
Draw_Circle_Square(0xe0,100,100,200,200,20,30);
Draw_Circle_Square_Fill(0xe0,250,100,350,200,20,30);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Draw_Circle_Square(0xf800,100,100,200,200,20,30);
Draw_Circle_Square_Fill(0xf800,250,100,350,200,20,30);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Draw_Circle_Square(0xff0000,100,100,200,200,20,30);
Draw_Circle_Square_Fill(0xff0000,250,100,350,200,20,30);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Draw_Circle_Square(0xf800,100,100,200,200,20,30);
Draw_Circle_Square_Fill(0xf800,250,100,350,200,20,30);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Draw_Circle_Square(0xff0000,100,100,200,200,20,30);
Draw_Circle_Square_Fill(0xff0000,250,100,350,200,20,30);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Draw_Circle_Square(0xff0000,100,100,200,200,20,30);
Draw_Circle_Square_Fill(0xff0000,250,100,350,200,20,30);
#endif
}
void API_PIP_Demo(void)
{
int i;
Show_Layer(1);
Write_Layer(2);
#ifdef MCU_8bit_ColorDepth_8bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,6144000);
Write_Layer(3);
DMA_24bit(1,0,0,0,480,272,480,6297600);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,4761600);
Write_Layer(3);
DMA_24bit(1,0,0,0,480,272,480,5068800);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,2304000);
Write_Layer(3);
DMA_24bit(1,0,0,0,480,272,480,2764800);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,4761600);
Write_Layer(3);
DMA_24bit(1,0,0,0,480,272,480,5068800);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1 //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,2304000);
Write_Layer(3);
DMA_24bit(1,0,0,0,480,272,480,2764800);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2 //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,2304000);
Write_Layer(3);
DMA_24bit(1,0,0,0,480,272,480,2764800);
#endif
PIP(1,1,Layer2,0,0,Panel_width,0,0,240,272);
PIP(1,2,Layer3,0,0,Panel_width,240,0,240,272);
}
//Serial Flash size <= 128Mbits
void API_DMA_24bit_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,6144000);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,4761600);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,2304000);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,4761600);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1 //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,2304000);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2 //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,2304000);
#endif
}
//Serial Flash size > 128Mbits
void API_DMA_32bit_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
switch_24bits_to_32bits(1);
#ifdef MCU_8bit_ColorDepth_8bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,6144000);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,4761600);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,2304000);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,4761600);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1 //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,2304000);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2 //setting in UserDef.h
DMA_24bit(1,0,0,0,480,320,480,2304000);
#endif
}
void API_BTE_Solid_Fill_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xe0,200,200);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xf800,200,200);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xFF0000,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xf800,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xFF0000,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xFF0000,200,200);
#endif
}
void API_BTE_Pattern_Fill_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp
DMA_24bit(1,0,0,0,480,272,480,6144000);
MPU8_8bpp_Memory_Write(0,0,16,16,Icon_8bit_8bpp);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
DMA_24bit(1,0,0,0,480,272,480,4761600);
MPU8_16bpp_Memory_Write(0,0,16,16,Icon_8bit_16bpp);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
DMA_24bit(1,0,0,0,480,272,480,2304000);
MPU8_24bpp_Memory_Write(0,0,16,16,Icon_8bit_24bpp);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
DMA_24bit(1,0,0,0,480,272,480,4761600);
MPU16_16bpp_Memory_Write(0,0,16,16,Icon_16bit_16bpp);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
DMA_24bit(1,0,0,0,480,272,480,2304000);
MPU16_24bpp_Mode1_Memory_Write(0,0,16,16,Icon_16bit_24bpp_mode1);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
DMA_24bit(1,0,0,0,480,272,480,2304000);
MPU16_24bpp_Mode2_Memory_Write(0,0,16,16,Icon_16bit_24bpp_mode2);
#endif
BTE_Pattern_Fill(1,Layer1,Panel_width,0,0,Layer1,Panel_width,0,0,Layer1,Panel_width,200,100,12,100,100);
}
void API_BTE_Pattern_Fill_with_Chroma_key_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp
DMA_24bit(1,0,0,0,480,272,480,6144000);
MPU8_8bpp_Memory_Write(0,0,16,16,Icon_8bit_8bpp);
BTE_Pattern_Fill_With_Chroma_key(1,Layer1,Panel_width,0,0,Layer1,Panel_width,0,0,Layer1,Panel_width,200,100,12,0x1f,100,100);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
DMA_24bit(1,0,0,0,480,272,480,4761600);
MPU8_16bpp_Memory_Write(0,0,16,16,Icon_8bit_16bpp);
BTE_Pattern_Fill_With_Chroma_key(1,Layer1,Panel_width,0,0,Layer1,Panel_width,0,0,Layer1,Panel_width,200,100,12,0x07ff,100,100);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
DMA_24bit(1,0,0,0,480,272,480,2304000);
MPU8_24bpp_Memory_Write(0,0,16,16,Icon_8bit_24bpp);
BTE_Pattern_Fill_With_Chroma_key(1,Layer1,Panel_width,0,0,Layer1,Panel_width,0,0,Layer1,Panel_width,200,100,12,0x00ffff,100,100);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
DMA_24bit(1,0,0,0,480,272,480,4761600);
MPU16_16bpp_Memory_Write(0,0,16,16,Icon_16bit_16bpp);
BTE_Pattern_Fill_With_Chroma_key(1,Layer1,Panel_width,0,0,Layer1,Panel_width,0,0,Layer1,Panel_width,200,100,12,0x07ff,100,100);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
DMA_24bit(1,0,0,0,480,272,480,2304000);
MPU16_24bpp_Mode1_Memory_Write(0,0,16,16,Icon_16bit_24bpp_mode1);
BTE_Pattern_Fill_With_Chroma_key(1,Layer1,Panel_width,0,0,Layer1,Panel_width,0,0,Layer1,Panel_width,200,100,12,0x00ffff,100,100);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
DMA_24bit(1,0,0,0,480,272,480,2304000);
MPU16_24bpp_Mode2_Memory_Write(0,0,16,16,Icon_16bit_24bpp_mode2);
BTE_Pattern_Fill_With_Chroma_key(1,Layer1,Panel_width,0,0,Layer1,Panel_width,0,0,Layer1,Panel_width,200,100,12,0x00ffff,100,100);
#endif
}
void API_BTE_Memory_Copy_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xe0,200,200);
Draw_Circle_Fill(0xfc,100,100,50);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xf800,200,200);
Draw_Circle_Fill(0xffe0,100,100,50);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xFF0000,200,200);
Draw_Circle_Fill(0xffff00,100,100,50);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xf800,200,200);
Draw_Circle_Fill(0xffe0,100,100,50);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xFF0000,200,200);
Draw_Circle_Fill(0xffff00,100,100,50);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xFF0000,200,200);
Draw_Circle_Fill(0xffff00,100,100,50);
#endif
BTE_Memory_Copy(Layer1,Panel_width,0,0,Layer1,Panel_width,0,0,Layer1,Panel_width,250,0,12,200,200);
}
void API_BTE_Memory_Copy_Chroma_key_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xe0,200,200);
Draw_Circle_Fill(0xfc,100,100,50);
BTE_Memory_Copy_Chroma_key(Layer1,Panel_width,0,0,Layer1,Panel_width,250,0,0xe0,200,200);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xf800,200,200);
Draw_Circle_Fill(0xffe0,100,100,50);
BTE_Memory_Copy_Chroma_key(Layer1,Panel_width,0,0,Layer1,Panel_width,250,0,0xf800,200,200);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xFF0000,200,200);
Draw_Circle_Fill(0xffff00,100,100,50);
BTE_Memory_Copy_Chroma_key(Layer1,Panel_width,0,0,Layer1,Panel_width,250,0,0xff0000,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xf800,200,200);
Draw_Circle_Fill(0xffe0,100,100,50);
BTE_Memory_Copy_Chroma_key(Layer1,Panel_width,0,0,Layer1,Panel_width,250,0,0xf800,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xFF0000,200,200);
Draw_Circle_Fill(0xffff00,100,100,50);
BTE_Memory_Copy_Chroma_key(Layer1,Panel_width,0,0,Layer1,Panel_width,250,0,0xff0000,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
BTE_Solid_Fill(Layer1,Panel_width,0,0,0xFF0000,200,200);
Draw_Circle_Fill(0xffff00,100,100,50);
BTE_Memory_Copy_Chroma_key(Layer1,Panel_width,0,0,Layer1,Panel_width,250,0,0xff0000,200,200);
#endif
}
void API_BTE_MCU_Write_MCU_8bit_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp //setting in UserDef.h
BTE_MCU_Write_MCU_8bit(Layer1,Panel_width,0,0,Layer1,Panel_width,100,100,12,128,128,gImage_8);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp //setting in UserDef.h
BTE_MCU_Write_MCU_8bit(Layer1,Panel_width,0,0,Layer1,Panel_width,100,100,12,128,128,gImage_16);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp //setting in UserDef.h
BTE_MCU_Write_MCU_8bit(Layer1,Panel_width,0,0,Layer1,Panel_width,100,100,12,128,128,gImage_24);
#endif
}
void API_BTE_MCU_Write_MCU_16bit_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_16bit_ColorDepth_16bpp
BTE_MCU_Write_MCU_16bit(Layer1,Panel_width,0,0,Layer1,Panel_width,100,100,12,128,128,pic1616);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
BTE_MCU_Write_MCU_16bit(Layer1,Panel_width,0,0,Layer1,Panel_width,100,100,12,128,128,pic16241);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
BTE_MCU_Write_MCU_16bit(Layer1,Panel_width,0,0,Layer1,Panel_width,100,100,12,128,128,pic1624);
#endif
}
void API_BTE_MCU_Write_Chroma_key_MCU_8bit_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp //setting in UserDef.h
BTE_MCU_Write_Chroma_key_MCU_8bit(Layer1,Panel_width,100,100,0xe0,128,128,gImage_8);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp //setting in UserDef.h
BTE_MCU_Write_Chroma_key_MCU_8bit(Layer1,Panel_width,100,100,0xf800,128,128,gImage_16);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp //setting in UserDef.h
BTE_MCU_Write_Chroma_key_MCU_8bit(Layer1,Panel_width,100,100,0xff0000,128,128,gImage_24);
#endif
}
void API_BTE_MCU_Write_Chroma_key_MCU_16bit_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_16bit_ColorDepth_16bpp //setting in UserDef.h
BTE_MCU_Write_Chroma_key_MCU_16bit(Layer1,Panel_width,100,100,0xf800,128,128,pic1616);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1 //setting in UserDef.h
BTE_MCU_Write_Chroma_key_MCU_16bit(Layer1,Panel_width,100,100,0xff0000,128,128,pic16241);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2 //setting in UserDef.h
BTE_MCU_Write_Chroma_key_MCU_16bit(Layer1,Panel_width,100,100,0xff0000,128,128,pic1624);
#endif
}
void API_BTE_MCU_Write_ColorExpansion_MCU_8bit_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_MCU_8bit(Layer1,Panel_width,0,0,128,128,0x03,0x1c,gImage_1);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_MCU_8bit(Layer1,Panel_width,0,0,128,128,0x001f,0x07e0,gImage_1);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_MCU_8bit(Layer1,Panel_width,0,0,128,128,0x0000ff,0x00ff00,gImage_1);
#endif
}
void API_BTE_MCU_Write_ColorExpansion_Chroma_key_MCU_8bit_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_Chroma_key_MCU_8bit(Layer1,Panel_width,0,0,128,128,0xe0,gImage_1);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_Chroma_key_MCU_8bit(Layer1,Panel_width,0,0,128,128,0xf800,gImage_1);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_Chroma_key_MCU_8bit(Layer1,Panel_width,0,0,128,128,0xff0000,gImage_1);
#endif
}
void API_BTE_MCU_Write_ColorExpansion_MCU_16bit_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_16bit_ColorDepth_16bpp //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_MCU_16bit(Layer1,Panel_width,0,0,128,128,0x001f,0x07e0,Test);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1 //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_MCU_16bit(Layer1,Panel_width,0,0,128,128,0x0000ff,0x00ff00,Test);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2 //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_MCU_16bit(Layer1,Panel_width,0,0,128,128,0x0000ff,0x00ff00,Test);
#endif
}
void API_BTE_MCU_Write_ColorExpansion_Chroma_key_MCU_16bit_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_16bit_ColorDepth_16bpp //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_Chroma_key_MCU_16bit(Layer1,Panel_width,0,0,128,128,0xf800,Test);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1 //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_Chroma_key_MCU_16bit(Layer1,Panel_width,0,0,128,128,0xff0000,Test);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2 //setting in UserDef.h
BTE_MCU_Write_ColorExpansion_Chroma_key_MCU_16bit(Layer1,Panel_width,0,0,128,128,0xff0000,Test);
#endif
}
void API_BTE_Alpha_Blending_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,6144000);
BTE_Solid_Fill(Layer2,Panel_width,0,0,0x1c,200,200);
#endif
#ifdef MCU_8bit_ColorDepth_16bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,4761600);
BTE_Solid_Fill(Layer2,Panel_width,0,0,0x07e0,200,200);
#endif
#ifdef MCU_8bit_ColorDepth_24bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,2304000);
BTE_Solid_Fill(Layer2,Panel_width,0,0,0x00FF00,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_16bpp //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,4761600);
BTE_Solid_Fill(Layer2,Panel_width,0,0,0x07e0,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1 //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,2304000);
BTE_Solid_Fill(Layer2,Panel_width,0,0,0x00FF00,200,200);
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2 //setting in UserDef.h
DMA_24bit(1,0,0,0,480,272,480,2304000);
BTE_Solid_Fill(Layer2,Panel_width,0,0,0x00FF00,200,200);
#endif
// BTE_Alpha_Blending(0,2736,500,300,0,2736,1024,0,0,2736,1100,400,200,200,0);
// BTE_Alpha_Blending(0,2736,500,300,0,2736,1024,0,0,2736,1100,400,200,200,8);
BTE_Alpha_Blending(Layer1,Panel_width,0,0,Layer2,Panel_width,0,0,Layer1,Panel_width,0,0,200,200,16);
// BTE_Alpha_Blending(0,2736,500,300,0,2736,1024,0,0,2736,1100,400,200,200,24);
// BTE_Alpha_Blending(0,2736,500,300,0,2736,1024,0,0,2736,1100,400,200,200,32);
}
void API_Print_Internal_Font_String_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Select_Font_Height_WxN_HxN_ChromaKey_Alignment(16,1,1,0,0);
#ifdef MCU_8bit_ColorDepth_8bpp
Print_Internal_Font_String(0,0,Panel_width,Panel_length,0xe0,0x1c,"adfsdfdgfhhgfh");
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Print_Internal_Font_String(0,0,Panel_width,Panel_length,0xf800,0x07e0,"adfsdfdgfhhgfh");
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Print_Internal_Font_String(0,0,Panel_width,Panel_length,0xff0000,0x00ff00,"adfsdfdgfhhgfh");
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Print_Internal_Font_String(0,0,Panel_width,Panel_length,0xf800,0x07e0,"Main Product : LCD Panels ,LCD Modules and OLED display Factory: Floor 1, Building 4, No.588 FeiJiaTang Road, XiaCheng District ,HangZhou, China Tsingtek抯 ambition is to be the industry抯 benchmark as the most proficient company in the global LCD and OLED industry. From our headquarters in Hangzhou China, we have built a strong, sustainable business for our wide range of feature rich products where reliability and quality of service are of paramount importance. Our advanced production facilities utilize COB, SMT, COG, and TAB processes to support the production of standard and customized display modules.");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Print_Internal_Font_String(0,0,Panel_width,Panel_length,0xff0000,0x00ff00,"adfsdfdgfhhgfh");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Print_Internal_Font_String(0,0,Panel_width,Panel_length,0xff0000,0x00ff00,"adfsdfdgfhhgfh");
#endif
}
void API_Print_BIG5String_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Select_Font_Height_WxN_HxN_ChromaKey_Alignment(24,2,2,0,0);
#ifdef MCU_8bit_ColorDepth_8bpp
Print_BIG5String(3,0,0,0,Panel_width,Panel_length,0xe0,0x1c,"风м123456");
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Print_BIG5String(3,0,0,0,Panel_width,Panel_length,0xf800,0x07e0,"风м123456");
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Print_BIG5String(3,0,0,0,Panel_width,Panel_length,0xff0000,0x00ff00,"风м123456");
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Print_BIG5String(3,0,0,0,Panel_width,Panel_length,0xf800,0x07e0,"风м123456");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Print_BIG5String(3,0,0,0,Panel_width,Panel_length,0xff0000,0x00ff00,"风м123456");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Print_BIG5String(3,0,0,0,Panel_width,Panel_length,0xff0000,0x00ff00,"风м123456");
#endif
}
void API_Print_GB2312String_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Select_Font_Height_WxN_HxN_ChromaKey_Alignment(24,2,2,0,0);
#ifdef MCU_8bit_ColorDepth_8bpp
Print_GB2312String(3,0,0,0,Panel_width,Panel_length,0xe0,0x03,"瑞佑科技123456");
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Print_GB2312String(3,1,0,0,Panel_width,Panel_length,0xf800,0x001f,"瑞佑科技123456");
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Print_GB2312String(3,0,0,0,Panel_width,Panel_length,0xff0000,0x0000ff,"瑞佑科技123456");
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Print_GB2312String(3,1,0,0,Panel_width,Panel_length,0xf800,0x001f,"杭州佳显科技有限公司,费家塘路588号4幢1楼,液晶显示模块");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Print_GB2312String(3,0,0,0,Panel_width,Panel_length,0xff0000,0x0000ff,"瑞佑科技123456");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Print_GB2312String(3,0,0,0,Panel_width,Panel_length,0xff0000,0x0000ff,"瑞佑科技123456");
#endif
}
void API_Print_GB12345String_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Select_Font_Height_WxN_HxN_ChromaKey_Alignment(24,2,2,0,0);
#ifdef MCU_8bit_ColorDepth_8bpp
Print_GB12345String(3,0,0,0,Panel_width,Panel_length,0xe0,0x03,"瑞佑科技123456");
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Print_GB12345String(3,0,0,0,Panel_width,Panel_length,0xf800,0x001f,"瑞佑科技123456");
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Print_GB12345String(3,0,0,0,Panel_width,Panel_length,0xff0000,0x0000ff,"瑞佑科技123456");
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Print_GB12345String(3,0,0,0,Panel_width,Panel_length,0xf800,0x001f,"瑞佑科技123456");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Print_GB12345String(3,0,0,0,Panel_width,Panel_length,0xff0000,0x0000ff,"瑞佑科技123456");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Print_GB12345String(3,0,0,0,Panel_width,Panel_length,0xff0000,0x0000ff,"瑞佑科技123456");
#endif
}
void API_Print_UnicodeString_Demo(void)
{
Write_Layer(1);
Show_Layer(1);
Select_Font_Height_WxN_HxN_ChromaKey_Alignment(24,2,2,0,0);
#ifdef MCU_8bit_ColorDepth_8bpp
Print_UnicodeString(3,0,0,0,Panel_width,Panel_length,0xe0,0x1c,L"穝λ郡λカじ刁8腹6加ぇ5");
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
Print_UnicodeString(3,0,0,0,Panel_width,Panel_length,0xf800,0x07e0,L"穝λ郡λカじ刁8腹6加ぇ5");
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
Print_UnicodeString(3,0,0,0,Panel_width,Panel_length,0xff0000,0x00ff00,L"穝λ郡λカじ刁8腹6加ぇ5");
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
Print_UnicodeString(3,0,0,0,Panel_width,Panel_length,0xf800,0x07e0,L"穝λ郡λカじ刁8腹6加ぇ5");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_1
Print_UnicodeString(3,0,0,0,Panel_width,Panel_length,0xff0000,0x00ff00,L"穝λ郡λカじ刁8腹6加ぇ5");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
Print_UnicodeString(3,0,0,0,Panel_width,Panel_length,0xff0000,0x00ff00,L"穝λ郡λカじ刁8腹6加ぇ5");
#endif
}
void PWM_Demo (void)
{
PWM0(1,3,100,1,0);
PWM1(1,3,50,50,50);
}
void RAiO_define_font(void)
{
Write_Layer(1);
Show_Layer(1);
#ifdef MCU_8bit_ColorDepth_8bpp
lcdPutString8x12(0,0,0xe0,0x00,0,"sdfs6+55");
lcdPutString16x24(0,100,0x1c,0x00, 0,"sijsojfe565");
lcdPutString32x48(0,200,0x03,0x00,1,"sdjlfw5464ewr");
#endif
#ifdef MCU_8bit_ColorDepth_16bpp
lcdPutString8x12(0,0,0xf800,0x0000,0,"sdfs6+55");
lcdPutString16x24(0,100,0x07e0,0x0000, 0,"sijsojfe565");
lcdPutString32x48(0,200,0x001f,0x0000,1,"sdjlfw5464ewr");
#endif
#ifdef MCU_8bit_ColorDepth_24bpp
lcdPutString8x12(0,0,0xff0000,0x000000,0,"sdfs6+55");
lcdPutString16x24(0,100,0x00ff00,0x000000, 0,"sijsojfe565");
lcdPutString32x48(0,200,0x0000ff,0x000000,1,"sdjlfw5464ewr");
#endif
#ifdef MCU_16bit_ColorDepth_16bpp
lcdPutString8x12(0,0,0xf800,0x0000,0,"sdfs6+55");
lcdPutString16x24(0,100,0x07e0,0x0000, 0,"sijsojfe565");
lcdPutString32x48(0,200,0x001f,0x0000,1,"sdjlfw5464ewr");
#endif
#ifdef MCU_16bit_ColorDepth_24bpp_Mode_2
lcdPutString8x12(0,0,0xff0000,0x000000,0,"sdfs6+55");
lcdPutString16x24(0,100,0x00ff00,0x000000, 0,"sijsojfe565");
lcdPutString32x48(0,200,0x0000ff,0x000000,1,"sdjlfw5464ewr");
#endif
}