ILI9225 TFT显示屏16位并口方式驱动

news2025/1/19 8:20:08

 所用屏及资料如后图:

        ILI9225,176*220,8位或16位并口屏,IM0接GND,电源及背光接3.3v

主控:CH32V307驱动(库文件和STM32基本一样)

c281035882904959834e30a8f7bcf272.jpg

c21901d90e184cd7872f39d1657b7eb1.jpeg

2acba43771e6452a97e0b1758515f9e9.jpeg

一、源码

ILI9225.c

#include "ILI9225.h"
#include "ch32v30x_gpio.h"
//---汉字的字库头文件---//
#include"charcode.h"

/* Global Variable */
unsigned char fch,fcl;  //前景色高位和低位
/*
 *
 * CS --_____________________________--,低:有效
 * RD ---------------------------------,高:写
 * WR  -__--__--__--__--__--__--__-----,低:写
 * RS _________________________________,低:Index
 * RS ---------------------------------,高:Data
 *
 */
void LCD_Writ_Bus16(unsigned char VH,unsigned char VL)
{
    u16 val;
    val=((VH<<8)&0xFF00)+VL;

    LCD_WR_SET;
    LCD_RD_SET;

    GPIO_Write(LCD_PORT,val);

    LCD_WR_CLR;
    LCD_WR_SET;

}

void LCD_Write_COM(unsigned char VL)
{
    LCD_CS_CLR;
    LCD_RS_CLR;
    LCD_Writ_Bus16(0x00,VL);
    LCD_CS_SET;
}


void LCD_Write_DATA(unsigned char VH,unsigned char VL)
{
    LCD_CS_CLR;
    LCD_RS_SET;
    LCD_Writ_Bus16(VH,VL);
    LCD_CS_SET;
}

void LCD_Write_DATA16(unsigned short val)
{
    LCD_CS_CLR;
    LCD_RS_SET;
    LCD_RD_SET;
    LCD_WR_CLR;

    GPIO_Write(LCD_PORT,val);

    LCD_WR_CLR;
    LCD_WR_SET;
    LCD_CS_SET;

}

void LCD_Write_COM_DATA(unsigned char com1,unsigned short dat1)
{
    LCD_Write_COM(com1);
    LCD_Write_DATA16(dat1);
}

/*
 * @prief InitLCD
 */
void InitLCD()
{

    LCD_Reset();
    Delay_Ms(150);
 
    printf("ili9225 Initial\r\n");
    Delay_Ms(50);

    LCD_CS_CLR;

    LCD_Write_COM_DATA(0x10, 0x0000);
    LCD_Write_COM_DATA(0x11, 0x0000);
    LCD_Write_COM_DATA(0x12, 0x0000);
    LCD_Write_COM_DATA(0x13, 0x0000);
    LCD_Write_COM_DATA(0x14, 0x0000);
    Delay_Ms(40);

    LCD_Write_COM_DATA(0x11, 0x0018);
    LCD_Write_COM_DATA(0x12, 0x6121);
    LCD_Write_COM_DATA(0x13, 0x006F);
    LCD_Write_COM_DATA(0x14, 0x495F);
    LCD_Write_COM_DATA(0x10, 0x0800);
    Delay_Ms(10);
    LCD_Write_COM_DATA(0x11, 0x103B);
    Delay_Ms(50);
    LCD_Write_COM_DATA(0x01, 0x011C);
    LCD_Write_COM_DATA(0x02, 0x0100);
    LCD_Write_COM_DATA(0x03, 0x1030);
    LCD_Write_COM_DATA(0x07, 0x0000);
    LCD_Write_COM_DATA(0x08, 0x0808);
    LCD_Write_COM_DATA(0x0b, 0x1100);
    LCD_Write_COM_DATA(0x0c, 0x0000);
    LCD_Write_COM_DATA(0x0f, 0x0D01);
    LCD_Write_COM_DATA(0x15, 0x0020);
    LCD_Write_COM_DATA(0x20, 0x0000);
    LCD_Write_COM_DATA(0x21, 0x0000);

    LCD_Write_COM_DATA(0x30, 0x0000);
    LCD_Write_COM_DATA(0x31, 0x00DB);
    LCD_Write_COM_DATA(0x32, 0x0000);
    LCD_Write_COM_DATA(0x33, 0x0000);

    LCD_Write_COM_DATA(0x34, 0x00DB);
    LCD_Write_COM_DATA(0x35, 0x0000);
    LCD_Write_COM_DATA(0x36, 0x00AF);
    LCD_Write_COM_DATA(0x37, 0x0000);
    LCD_Write_COM_DATA(0x38, 0x00DB);
    LCD_Write_COM_DATA(0x39, 0x0000);

    LCD_Write_COM_DATA(0x50, 0x0000);
    LCD_Write_COM_DATA(0x51, 0x0808);
    LCD_Write_COM_DATA(0x52, 0x080A);
    LCD_Write_COM_DATA(0x53, 0x000A);
    LCD_Write_COM_DATA(0x54, 0x0A08);
    LCD_Write_COM_DATA(0x55, 0x0808);
    LCD_Write_COM_DATA(0x56, 0x0000);
    LCD_Write_COM_DATA(0x57, 0x0A00);
    LCD_Write_COM_DATA(0x58, 0x0710);
    LCD_Write_COM_DATA(0x59, 0x0710);

    LCD_Write_COM_DATA(0x07, 0x0012);
    Delay_Ms(50);
    LCD_Write_COM_DATA(0x07, 0x1017);
    LCD_Write_COM(0x22);
    LCD_CS_SET;
}

void LCD_Reset(void)
{
    LCD_RST_CLR;
    Delay_Ms(50);
    LCD_RST_SET;
    Delay_Ms(150);
}

/*
 * @prief clrScr 清屏
 */
void clrScr(unsigned short color)
{
    int i;
    u8 ch,cl;
    ch=color>>8;
    cl=color&0xff;

    clrXY();

    for (i=0; i<((disp_x_size+1)*(disp_y_size+1)); i++)
    {
       LCD_Write_DATA(ch,cl);

    }

}

void setXY(unsigned char x1, unsigned char y1, unsigned char x2, unsigned char y2)
{
    LCD_Write_COM_DATA(0x36,x2);
    LCD_Write_COM_DATA(0x37,x1);
    LCD_Write_COM_DATA(0x38,y2);
    LCD_Write_COM_DATA(0x39,y1);
    LCD_Write_COM_DATA(0x20,x1);
    LCD_Write_COM_DATA(0x21,y1);
    LCD_Write_COM(0x22);
}

void clrXY()
{
    setXY(0,0,disp_x_size,disp_y_size);
}
void setPixel(unsigned char color)
{

    LCD_Write_DATA((color>>8),(color&0xFF));    // rrrrrggggggbbbbb

}


void drawPixel(unsigned char  x, unsigned char  y)
{
    setXY(x, y, x, y);
    setPixel((fch<<8)|fcl);
    clrXY();
}


void setColor(unsigned short color)
{
    fch=color>>8;
    fcl=color & 0xFF;
}


void drawHLine(unsigned char x, unsigned char y, unsigned char l)
{
    setXY(x, y, x+l, y);

    for(int i=0; i<l+1; i++)
    {
        LCD_Write_DATA(fch, fcl);
    }

    clrXY();
}


void drawVLine(unsigned char x, unsigned char y, unsigned char l)
{
    setXY(x, y, x, y+l);

    for(int i=0; i<l+1; i++)
    {
        LCD_Write_DATA(fch, fcl);
    }

    clrXY();
}

void drawLine(unsigned char  x1, unsigned char  y1, unsigned char  x2, unsigned char  y2)
{
    if (y1==y2)
        drawHLine(x1, y1, x2-x1);
    else if (x1==x2)
        drawVLine(x1, y1, y2-y1);
    else
    {
        unsigned int    dx = (x2 > x1 ? x2 - x1 : x1 - x2);
        short           xstep =  x2 > x1 ? 1 : -1;
        unsigned int    dy = (y2 > y1 ? y2 - y1 : y1 - y2);
        short           ystep =  y2 > y1 ? 1 : -1;
        int             col = x1, row = y1;
        if (dx < dy)
        {
            int t = - (dy >> 1);
            while (1)
            {
                setXY (col, row, col, row);
                LCD_Write_DATA(fch, fcl);
                if (row == y2)
                    return;
                row += ystep;
                t += dx;
                if (t >= 0)
                {
                    col += xstep;
                    t   -= dy;
                }
            }
        }
        else
                {
                    int t = - (dx >> 1);
                    while (1)
                    {
                        setXY (col, row, col, row);
                        LCD_Write_DATA(fch, fcl);
                        if (col == x2)
                            return;
                        col += xstep;
                        t += dy;
                        if (t >= 0)
                        {
                            row += ystep;
                            t   -= dx;
                        }
                    }
                }
        }
        clrXY();
}

void drawRect(int x1, int y1, int x2, int y2)
{
    drawHLine(x1, y1, x2-x1);
    drawHLine(x1, y2, x2-x1);
    drawVLine(x1, y1, y2-y1);
    drawVLine(x2, y1, y2-y1);
}

void drawRect1(unsigned char x, unsigned char y, unsigned char w, unsigned char h, unsigned short c)
{
  setColor(c);
  drawRect(x, y,x+w-1 , y+h-1);
}

void fillRect(int x1, int y1, int x2, int y2)
{
/*
    for (int i=0; i<((x2-x1)/2)+1; i++)
    {
        drawVLine(x1+i, y1, y2-y1);
        drawVLine(x2-i, y1, y2-y1);
    }
    */
    setXY(x1, y1, x2, y2);

    for(int i=0; i<(x2-x1)*(y2-y1)-1; i++)
    {
        LCD_Write_DATA(fch, fcl);
    }
    clrXY();
}
void drawRoundRect(int x1, int y1, int x2, int y2)
{
    if ((x2-x1)>4 && (y2-y1)>4)
    {
        drawPixel(x1+1,y1+1);
        drawPixel(x2-1,y1+1);
        drawPixel(x1+1,y2-1);
        drawPixel(x2-1,y2-1);
        drawHLine(x1+2, y1, x2-x1-4);
        drawHLine(x1+2, y2, x2-x1-4);
        drawVLine(x1, y1+2, y2-y1-4);
        drawVLine(x2, y1+2, y2-y1-4);
    }
}

void fillRoundRect(int x1, int y1, int x2, int y2)
{
    if ((x2-x1)>4 && (y2-y1)>4)
    {
        for (int i=0; i<((y2-y1)/2)+1; i++)
        {
            switch(i)
            {
            case 0:
                drawHLine(x1+2, y1+i, x2-x1-4);
                drawHLine(x1+2, y2-i, x2-x1-4);
                break;
            case 1:
                drawHLine(x1+1, y1+i, x2-x1-2);
                drawHLine(x1+1, y2-i, x2-x1-2);
                break;
            default:
                drawHLine(x1, y1+i, x2-x1);
                drawHLine(x1, y2-i, x2-x1);
            }
        }
    }
}


void drawCircle(int x, int y, int radius)
{
    int f = 1 - radius;
    int ddF_x = 1;
    int ddF_y = -2 * radius;
    int x1 = 0;
    int y1 = radius;


    setXY(x, y + radius, x, y + radius);
    LCD_Write_DATA(fch,fcl);
    setXY(x, y - radius, x, y - radius);
    LCD_Write_DATA(fch,fcl);
    setXY(x + radius, y, x + radius, y);
    LCD_Write_DATA(fch,fcl);
    setXY(x - radius, y, x - radius, y);
    LCD_Write_DATA(fch,fcl);

    while(x1 < y1)
    {
        if(f >= 0)
        {
            y1--;
            ddF_y += 2;
            f += ddF_y;
        }
        x1++;
        ddF_x += 2;
        f += ddF_x;
        setXY(x + x1, y + y1, x + x1, y + y1);
        LCD_Write_DATA(fch,fcl);
        setXY(x - x1, y + y1, x - x1, y + y1);
        LCD_Write_DATA(fch,fcl);
        setXY(x + x1, y - y1, x + x1, y - y1);
        LCD_Write_DATA(fch,fcl);
        setXY(x - x1, y - y1, x - x1, y - y1);
        LCD_Write_DATA(fch,fcl);
        setXY(x + y1, y + x1, x + y1, y + x1);
        LCD_Write_DATA(fch,fcl);
        setXY(x - y1, y + x1, x - y1, y + x1);
        LCD_Write_DATA(fch,fcl);
        setXY(x + y1, y - x1, x + y1, y - x1);
        LCD_Write_DATA(fch,fcl);
        setXY(x - y1, y - x1, x - y1, y - x1);
        LCD_Write_DATA(fch,fcl);
    }
    clrXY();
}

void fillCircle(int x, int y, int radius)
{
    for(int y1=-radius; y1<=0; y1++)
        for(int x1=-radius; x1<=0; x1++)
            if(x1*x1+y1*y1 <= radius*radius)
            {
                drawHLine(x+x1, y+y1, 2*(-x1));
                drawHLine(x+x1, y-y1, 2*(-x1));
                break;
            }
}

void show_color_bar()
{
    unsigned long i,j;
    clrXY();

        for (i=0; i<disp_y_size; i++)
        {
            for (j=0; j<disp_x_size; j++)
            {
                  if(i>210){LCD_Write_DATA(0xFA,0x00);}
                  else if(i>180){LCD_Write_DATA(0x04,0x00);}
                  else if(i>150){LCD_Write_DATA(0xC6,0x18);}
                  else if(i>120){LCD_Write_DATA(0x00,0x1F);}
                  else if(i>90){LCD_Write_DATA(0x84,0x10);}
                  else if(i>60){LCD_Write_DATA(0x80,0x00);}
                  else if(i>30){LCD_Write_DATA(0xFF,0xE0);}
                  else {LCD_Write_DATA(0x80,10);}
                }
            }
}


/****************************************************************************
*函数名:GUI_Dot
*输  入:x:点的X坐标
*      * y:点的Y坐标
*      * color:点的颜色
*输  出:
*功  能:给一块3*3像素涂上颜色。
****************************************************************************/

void GUI_Dot(uint x, uint y, uint color)
{
    u8 i;

    setXY(x , y , x, y);  //单个像素  XS YS XE YE
    for(i=0; i<9; i++)
    {
        LCD_Write_DATA(color>>8,color&0xFF);
    }
}


void GUI_Write32CnChar(unsigned char x, unsigned char y, unsigned char *cn, unsigned short wordColor, unsigned short backColor)
{
    u8 i, j, wordNum;
    uint color;
    while (*cn != '\0')
    {
        setXY(x, y, x+31, y+28);
        for (wordNum=0; wordNum<20; wordNum++)
        {   //wordNum扫描字库的字数
            if ((CnChar32x29[wordNum].Index[0]==*cn)
                 &&(CnChar32x29[wordNum].Index[1]==*(cn+1)))
            {
                for(i=0; i<116; i++)
                {   //MSK的位数
                    color=CnChar32x29[wordNum].Msk[i];
                    for(j=0;j<8;j++)
                    {
                        if((color&0x80)==0x80)
                        {

                            LCD_Write_DATA(wordColor>>8,wordColor&0xFF);
                        }
                        else
                        {
                            LCD_Write_DATA(backColor>>8,backColor&0xFF);
                        }
                        color<<=1;
                    }//for(j=0;j<8;j++)结束
                }
            }
        } //for (wordNum=0; wordNum<20; wordNum++)结束
        cn += 2;
        x += 32;
    }
}


void GUI_WriteASCII(unsigned char  x, unsigned char  y, unsigned char  *p, unsigned short  wordColor, unsigned short  backColor)
{
    u8 j, wordByte,wordNum;
    uint color;
    while(*p != '\0')
    {
        wordNum = *p - 32;
        setXY(x,y,x+15, y+23);
        for (wordByte=0; wordByte<48; wordByte++)
        {
            color = ASCII16x24[wordNum][wordByte];
            for (j=0; j<8; j++)
            {
                if ((color&0x80) == 0x80)
                {
                    LCD_Write_DATA(wordColor>>8,wordColor&0xFF);
                }
                else
                {
                    LCD_Write_DATA(backColor>>8,backColor&0xFF);
                }
                color <<= 1;
            }
        }
        p++;
        x +=16;
    }
}

ILI9225.h

#ifndef USER_ILI9225_H_
#define USER_ILI9225_H_

#define disp_x_size 176
#define disp_y_size 220



//*********************************
// COLORS
//*********************************
// VGA color palette
#define VGA_BLACK       0x0000
#define VGA_WHITE       0xFFFF
#define VGA_RED         0xF800
#define VGA_GREEN       0x0400
#define VGA_BLUE        0x001F
#define VGA_SILVER      0xC618
#define VGA_GRAY        0x8410
#define VGA_MAROON      0x8000
#define VGA_YELLOW      0xFFE0
#define VGA_OLIVE       0x8400
#define VGA_LIME        0x07E0
#define VGA_AQUA        0x07FF
#define VGA_TEAL        0x0410
#define VGA_NAVY        0x0010
#define VGA_FUCHSIA     0xF81F
#define VGA_PURPLE      0x8010
#define VGA_TRANSPARENT 0xFFFFFFFF


/*
 *  GND-1;VDD(3V3)-2;  IM0-25 接GND 16bit; LED-:31~33;LED+:34
 */
#define LCD_CS GPIO_Pin_1       //4
#define LCD_RS GPIO_Pin_2       //5
#define LCD_WR GPIO_Pin_3       //6
#define LCD_RST GPIO_Pin_4      //24
#define LCD_RD GPIO_Pin_5       //7

#define LCD_PORT GPIOD          //8-23


#define LCD_CS_SET GPIO_WriteBit(GPIOA, LCD_CS,Bit_SET)
#define LCD_CS_CLR GPIO_WriteBit(GPIOA, LCD_CS,Bit_RESET)

#define LCD_RS_SET GPIO_WriteBit(GPIOA, LCD_RS,Bit_SET)
#define LCD_RS_CLR GPIO_WriteBit(GPIOA, LCD_RS,Bit_RESET)

#define LCD_WR_SET GPIO_WriteBit(GPIOA, LCD_WR,Bit_SET)
#define LCD_WR_CLR GPIO_WriteBit(GPIOA, LCD_WR,Bit_RESET)

#define LCD_RST_SET GPIO_WriteBit(GPIOA, LCD_RST,Bit_SET)
#define LCD_RST_CLR GPIO_WriteBit(GPIOA, LCD_RST,Bit_RESET)

#define LCD_RD_SET GPIO_WriteBit(GPIOA, LCD_RD,Bit_SET)
#define LCD_RD_CLR GPIO_WriteBit(GPIOA, LCD_RD,Bit_RESET)

void LCD_Writ_Bus16(unsigned char VH,unsigned char VL);
void LCD_Write_COM(unsigned char VL);
void LCD_Write_DATA(unsigned char VH,unsigned char VL);
void LCD_Write_DATA16(unsigned short val);
void LCD_Write_COM_DATA(unsigned char com1,unsigned short dat1);
void InitLCD();
void LCD_Reset(void);
void clrScr(unsigned short color);
void clrXY();
void setPixel(unsigned char color);
void drawPixel(unsigned char  x, unsigned char  y);
void setColor(unsigned short color);
void drawHLine(unsigned char x, unsigned char y, unsigned char l);
void drawVLine(unsigned char x, unsigned char y, unsigned char l);
void drawLine(unsigned char  x1, unsigned char  y1, unsigned char  x2, unsigned char  y2);

void fillRoundRect(int x1, int y1, int x2, int y2);
void drawCircle(int x, int y, int radius);
void fillCircle(int x, int y, int radius);
void drawRect(int x1, int y1, int x2, int y2);
void drawRect1(unsigned char x, unsigned char y, unsigned char w, unsigned char h, unsigned short c);
void fillRect(int x1, int y1, int x2, int y2);
void drawRoundRect(int x1, int y1, int x2, int y2);
void show_color_bar();

void GUI_Write32CnChar(unsigned char x, unsigned char y, unsigned char *cn, unsigned short wordColor, unsigned short backColor);
void GUI_WriteASCII(unsigned char  x, unsigned char  y, unsigned char  *p, unsigned short  wordColor, unsigned short  backColor);

#endif /* USER_ILI9225_H_ */

main.c

#include "debug.h"
#include "ILI9225.h"


/* Global typedef */



/* Global define */
#define CHAR32_SHOW
/* Global Variable */

void LCD_GPIO_Init(void)
{
   GPIO_InitTypeDef GPIO_InitStructure = {0};

   RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);

   GPIO_InitStructure.GPIO_Pin = LCD_CS|LCD_RS|LCD_WR|LCD_RST|LCD_RD;
   GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
   GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
   GPIO_Init(GPIOA, &GPIO_InitStructure);

   //16位并口
   RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOD, ENABLE);
   GPIO_InitStructure.GPIO_Pin = GPIO_Pin_All;
   GPIO_Init(LCD_PORT, &GPIO_InitStructure);


}


/*********************************************************************
 * @fn      main
 *
 * @brief   Main program.
 *
 * @return  none
 */
int main(void)
{
	NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
	SystemCoreClockUpdate();
	Delay_Init();
	USART_Printf_Init(115200);	
	printf("SystemClk:%d\r\n",SystemCoreClock);
	printf( "ChipID:%08x\r\n", DBGMCU_GetCHIPID() );
	printf("This is printf example\r\n");

	LCD_GPIO_Init();

	InitLCD();

	while(1)
    {
	    show_color_bar();
	    GUI_Write32CnChar(10,10,"科技日期",VGA_WHITE,VGA_BLUE);
	    GUI_WriteASCII(10,60,"abcdefghijkl",VGA_WHITE,VGA_RED);
	    GUI_WriteASCII(10,90,"ABCDEFGHIJKL",VGA_WHITE,VGA_RED);
	    GUI_WriteASCII(10,120,"!@#$%^&*()~;:",VGA_WHITE,VGA_RED);
	    Delay_Ms(3000);
	    setColor(VGA_WHITE);
	    clrScr(VGA_RED);
	    fillRoundRect(50,50,100,100);
	    Delay_Ms(1000);
	    clrScr(VGA_GREEN);
	    fillRoundRect(50,50,100,100);
	    Delay_Ms(1000);
	    clrScr(VGA_BLUE);
	    fillRoundRect(50,50,100,100);
	    Delay_Ms(1000);
	    clrScr(VGA_YELLOW);
	    fillRoundRect(50,50,100,100);
	    setColor(VGA_RED);
	    drawCircle(100,100,50);
	    Delay_Ms(1000);

	}
}

二、总结

1、不会看屏幕引脚定义.开始找了一款LGDP4525和这个定义是一样的,试了一天不行。又查了一下,相同款还有ILI9225驱动的,引脚定义完全相同。试了一下可以。

ILI9225演示用

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1239145.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

innoDB的缓冲池(Buffer Pool)的工作原理

数据存在磁盘了&#xff0c;总不能次次和磁盘交互吧&#xff0c;所以innoDB有一个缓冲池&#xff08;Buffer Pool&#xff09;&#xff0c;有了缓冲池后&#xff0c;读写就优先在缓冲池了。读先在缓冲池读&#xff0c;没有再去磁盘加载进缓冲池&#xff1b;写也是先写缓冲池&am…

学习MySQL先有全局观,细说其发展历程及特点

学习MySQL先有全局观&#xff0c;细说其发展历程及特点 一、枝繁叶茂的MySQL家族1. 发展历程2. 分支版本 二、特点分析1. 常用数据库2. 选型角度及场景 三、三大组成部分四、总结 相信很多同学在接触编程之初&#xff0c;就接触过数据库&#xff0c;而对于其中关系型数据库中的…

云备份——初步认识及环境搭建

文章目录 整体功能简介云备份功能实现目标服务器程序负责功能细分服务端模块划分客户端功能细分客户端模块划分 环境搭建gcc安装 jsoncppbundle库 与 httplib库安装 整体功能简介 云备份功能 自动将本地计算机上指定文件夹中需要备份的文件上传备份到服务器中 并且能够通过浏…

__int128类型movaps指令crash

结论 在使用__int128时&#xff0c;如果__int128类型的内存起始地址不是按16字节对齐的话&#xff0c;有些汇编指令会抛出SIGSEGV使程序crash。 malloc在64位系统中申请的内存地址&#xff0c;是按16字节对齐的&#xff0c;但一般使用时经常会申请一块内存自己切割使用&#…

小程序泄露腾讯地图apikey

今天挖小程序时测了很久&#xff0c;一直没有头绪&#xff0c;后来想要测试一下支付漏洞&#xff0c;但是这里却出问题了 添加地址时我发现&#xff0c;当我添加一个地址时&#xff0c;他会显示腾讯地图的logo和一部分小图&#xff0c;那时候我就在想&#xff0c;既然这里可以调…

独立版求职招聘平台小程序开发

小程序招聘系统开发 我们开发了一款高效、便捷的互联网招聘平台。在这里&#xff0c;可以轻松实现企业入驻、职位发布、在线求职、精准匹配职位和人才&#xff0c;以及参与招聘会等功能。目标是为求职者和企业搭建一个连接彼此的桥梁&#xff0c;帮助您更快地找到满意的工作&…

高斯Filter 和 Bilateral Filter

参考链接&#xff1a; Python | Bilateral Filtering - GeeksforGeeks 高斯Filter&#xff1a; 高斯模糊后的图像中的每个像素的强度是由它周围的像素的加权平均得到的&#xff0c;这个权重就是高斯函数的值&#xff0c;它取决于像素之间的距离。具体来说&#xff1a; 通常会导…

论文阅读 Forecasting at Scale (二)

最近在看时间序列的文章&#xff0c;回顾下经典 论文地址 项目地址 Forecasting at Scale 3.2、季节性 3.3、假日和活动事件3.4、模型拟合3.5、分析师参与的循环建模4、自动化预测评估4.1、使用基线预测4.2、建模预测准确性4.3、模拟历史预测4.4、识别大的预测误差 5、结论6、致…

软件系统运维方案

1.项目情况 2.服务简述 2.1服务内容 2.2服务方式 2.3服务要求 2.4服务流程 2.5工作流程 2.6业务关系 2.7培训 3.资源提供 3.1项目组成员 3.2服务保障 点击获取所有软件开发资料&#xff1a;点我获取

使用paddleocr进行OCR文字识别

1 OCR介绍 OCR&#xff08;Optical Character Recognition&#xff09;即光学字符识别&#xff0c;是一种将不同类型的文档&#xff08;如扫描的纸质文件、PDF文件或图像文件中的文本&#xff09;转换成可编辑和可搜索的数据的技术。OCR技术能够识别和转换印刷或手写文字&…

商务俄语学习,柯桥基础入门教学,千万别小看俄语中的“что”

1、что до (чего) 至于 例&#xff1a; что до меня, то я не могу согласиться 至于我&#xff0c;我不能同意。 А что до зимовки... Ты приедешь в этом году? 说到冬天和过冬…你今年回来吗…

Leetcode—13.罗马数字转整数【简单】

2023每日刷题&#xff08;三十七&#xff09; Leetcode—13.罗马数字转整数 算法思想 当前位置的元素比下个位置的元素小&#xff0c;就减去当前值&#xff0c;否则加上当前值 实现代码 int getValue(char c) {switch(c) {case I:return 1;case V:return 5;case X:return 1…

DDoS攻击频发,科普防御DDoS攻击的几大有效方法

谈到目前最凶猛、频率高&#xff0c;且令人深恶痛绝的网络攻击&#xff0c;DDoS攻击无疑能在榜上占有一席之地。各种规模的企业报包括组织机构都可能受到影响&#xff0c;它能使企业宕机数小时以上&#xff0c;给整个互联网造成无数损失。可以说&#xff0c;怎样防御DDoS攻击是…

算法刷题-动态规划2

算法刷题-动态规划2 珠宝的最高价值下降路径最小和 珠宝的最高价值 题目 大佬思路 多开一行使得代码更加的简洁 移动到右侧和下侧 dp[ i ][ j ]有两种情况&#xff1a; 第一种是从上面来的礼物最大价值&#xff1a;dp[ i ][ j ] dp[ i - 1 ][ j ] g[ i ][ j ] 第二种是从左…

postman设置接口关联这样做,薪资直接涨3k

postman设置接口关联 在实际的接口测试中&#xff0c;后一个接口经常需要用到前一个接口返回的结果&#xff0c; 从而让后一个接口能正常执行&#xff0c;这个过程的实现称为关联。 在postman中实现关联操作的步骤如下&#xff1a; 1、利用postman获取上一个接口指定的返回值…

OpenStack-train版安装之环境准备

环境准备 环境介绍VMware配置WMware虚拟机最低配置WMware添加网卡WMware添加硬盘 基础环境安装修改各节点的主机名修改各节点的hosts文件修改各节点的内核参数关闭各节点的防火墙和selinux安装NPT&#xff08;时间同步&#xff09;安装OpenStack基础服务包 CentOS升级内核 环境…

[点云分割] 条件欧氏聚类分割

介绍 条件欧氏聚类分割是一种基于欧氏距离和条件限制的点云分割方法。它通过计算点云中点与点之间的欧氏距离&#xff0c;并结合一定的条件限制来将点云分割成不同的区域或聚类。 在条件欧氏聚类分割中&#xff0c;通常会定义以下两个条件来判断两个点是否属于同一个聚类&…

8款宝藏级别的云端设计工具推荐

早年&#xff0c;UI设计师选择的工具有限&#xff0c;功能相对单一&#xff0c;大多数在线原型设计工具都是国外的&#xff0c;语言和网络都增加了设计工作的负担。如今&#xff0c;国内外有许多在线原型设计工具&#xff0c;不仅可以在浏览器上使用&#xff0c;而且还具有团队…

你的关联申请已发起,请等待企业微信的管理员确认你的申请

微信支付对接时&#xff0c;需要申请AppID,具体在下面的位置&#xff1a; 关联AppID&#xff0c;发起申请时&#xff0c;会提示这么一句话&#xff1a; 此时需要登录企业微信网页版&#xff0c;使用注册人的企业微信扫码登录进去&#xff0c;然后按照下面的步骤操作即可。 点击…

二进制插桩:静态插桩和动态intel pin插桩

目前有两类插桩平台&#xff1a;静态插桩&#xff08;SBI&#xff09;和动态插桩&#xff08;DBI&#xff09; SBI使用二进制重写方法永久修改磁盘上的二进制文件&#xff1b;DBI不会修改磁盘上的二进制程序&#xff0c;而是监视二进制程序的执行状态&#xff0c;并在其运行时…