• sales

    +86-0755-88291180

6x12 English font modulo description

  • 6x12 English font modulo description
The size settings are as shown below:
The modulo data is as follows (click to open):
6x12 English ASCII modulo data
The function is defined as follows:
void LCD_Show_1206_char(u16 x,u16 y,u16 fc, u16 bc, u8 num,u8 mode)
{
    u8 temp;
    u8 pos,t;
    u16 colortemp=POINT_COLOR;      		   
    num=num-' ';//Get the offset value
    LCD_SetWindows(x,y,x+6-1,y+12-1);//Set a single text display window
    if(!mode) //Non-overlay mode: The font has a background color, which will overwrite the original display
    {		
        for(pos=0;pos<12;pos++)
	{
	    temp = asc2_1206[num][pos];//Call 1206 font, you need to take the model definition
	    for(t=0;t<6;t++)
            {                 
		if(temp&0x80)
		{
		    Lcd_WriteData_16Bit(fc);
		}
		else 
		{
		    Lcd_WriteData_16Bit(bc); 
		}
		temp<<=1;
	    }
			
	}	
    }
    else//Overlay mode: the font does not have a background color, and is directly superimposed and displayed on the original display content
    {
	for(pos=0;pos<12;pos++)
	{
	    temp = asc2_1206[num][pos];//Call 1206 font, you need to take the model definition
	    for(t=0;t<6;t++)
	    {   
		POINT_COLOR=fc;              
		if(temp&0x80)
		{
		    LCD_DrawPoint(x+t,y+pos);//Draw a point    
		}
		temp<<=1;
	    }
	}
    }
    POINT_COLOR=colortemp;	
    LCD_SetWindows(0,0,lcddev.width-1,lcddev.height-1);//Restore window to full screen         	   
}

TAG: Raspberry Pi Raspberry Pi 5 8 inch DSI LCD Captive TouchScreen MIPI Display 1280x800 Industrial One-Body Tablet PC With 5MP Front Camera X1015 Raspberry Pi 5 PCIe to M.2 Key-M NVMe SSD Board Pi5 2280 Jetson 1.5inch LCD Raspberry Pi Pico 2 RP2350 1.47 inch LCD B Display Development board RP2350A 1.47inch Screen RGB color Autofocus Camera 1.3inch LCD RP2040-PiZero Game ST7789 Raspberry Pi Pico LCD Display Screen USB to CAN UGV Rover PT AI OpenCV Robot Car MediaPipe For Raspberry Pi Raspberry Pi Pico W EG25-G Mini PCIe SIMCom Original 4G LTE Cat-4 Module Global Coverage GNSS PCI Express Mini Card Raspberry Pi Pico Industrial USB HUB USB3.2 Gen1 One-To-4U Onboard 7~36V DC power port For Multi Systems Raspberry Pi 5 SSD DDSM115 Direct Drive Servo Motor All-In-One Design Hub RS485 Motor Smart Car Pi5 Power ESP32 P4 Development Board 7-inch LCD Display 1024×600 7inch Touchscreen ESP32-C6 WiFi6 AI Deepseek Raspberry Pi 5 User Guide RV1106