if(temp&0x80)LCD_Fast_DrawPoint(x,y,POINT_COLOR);//判断每一位 else if(mode==0)LCD_Fast_DrawPoint(x,y,BACK_COLOR);//是否使用叠加方式 temp<<=1;//对前一位丢掉,后一位提前给她::if(temp&0x80)LCD_Fast_DrawPoint(x,y,POINT_COLOR); 回复 使用道具 举报 ...
if(temp_Hz&0x8000)LCD_Fast_DrawPoint(x,y,POINT_COLOR); else if(mode==0)LCD_Fast_DrawPoint(x,y,BACK_COLOR); temp_Hz<<=1; y++; if(y>=lcddev.height)return; //超域了 if((y-y0)==16) { y=y0; x++; if(x>=lcddev.width)return; //超域了 break; } } } } num:汉字编号 ...
首先,我们来看画点函数:LTDC_Draw_Point,该函数代码如下: //画点函数 //x,y:写入坐标 //color:颜色值 void LTDC_Draw_Point(u16 x,u16 y,u32 color) { #if LCD_PIXFORMAT==LCD_PIXFORMAT_ARGB8888|| LCD_PIXFORMAT==LCD_PIXFORMAT_RGB888 if(lcdltdc.dir) //横屏 { *(u32*)((u32)ltdc_frameb...
else if(mode==0)LCD_Fast_DrawPoint(x,y,BACK_COLOR); temp<<=1; y++; if(x>=lcddev.width)return; //超区域了 if((y-y0)==size) { y=y0; x++; if(x>=lcddev.width)return; //超区域了 break; } } } } 在LCD_ShowChar 函数里面,我们采用快速画点函数 LCD_Fast_DrawPoint 来画点显...
* PointColor:此点的颜色 * \return * */ void LCD_DrawPoint(uint16_t x,uint16_t y) { LTDC_Draw_Point(x,y,PointColor); } /** * \brief 函数功能:快速画点 * * \param[in] x,y:坐标 * color:颜色 * \return * */ void LCD_Fast_DrawPoint(uint16_t x,uint16_t y,uint...
if(temp&0x80)LCD_Fast_DrawPoint(x,y,POINT_COLOR); elseif(mode==0)LCD_Fast_DrawPoint(x,y,BACK_COLOR); temp<<=1; y++; if(y>=lcddev.height)return;//超区域了 if((y-y0)==size) { y=y0; x++; if(x>=lcddev.width)return;//超区域了 ...
首先,我们来看画点函数:LTDC_Draw_Point,该函数代码如下: //画点函数 //x,y:写入坐标 //color:颜色值 void LTDC_Draw_Point(u16 x,u16 y,u32 color) { #if LCD_PIXFORMAT==LCD_PIXFORMAT_ARGB8888|| LCD_PIXFORMAT==LCD_PIXFORMAT_RGB888 if(lcdltdc.dir) //横屏 { *(u32*)((u32)ltdc_frame...
(u16 Color); //清屏 void LCD_SetCursor(u16 Xpos, u16 Ypos); //设置光标 void LCD_DrawPoint(u16 x,u16 y); //画点 void LCD_Fast_DrawPoint(u16 x,u16 y,u16 color); //快速画点 u16 LCD_ReadPoint(u16 x,u16 y); //读点 void LCD_Draw_Circle(u16 x0,u16 y0,u8 r); //画圆 ...
void LCD_DrawPoint(uint16_t x, uint16_t y) { LCD_SetCursor(x, y); //设置光标位置 LCD_WriteRAM_Prepare(); //开始写入GRAM LCD_WriteRAM(POINT_COLOR); } //快速画点 //x,y:坐标 //color:颜色 void LCD_Fast_DrawPoint(uint16_t x, uint16_t y, uint16_t color) ...
else if(mode==0)LCD_Fast_DrawPoint(x,y,BACK_COLOR);temp<<=1;y++;if(y>=lcddev.height)...