void OLED_P32x32Ch(unsigned char x,unsigned char y,unsigned int N)
{
unsigned char wm=0;
unsigned int adder=128*N;
OLED_Set_Pos(x , y);
for(wm = 0;wm < 32;wm++)
{
OLED_WrDat(F32x32[adder]);
adder += 1;
}
OLED_Set_Pos(x,y+1 );
for(wm = 0;wm <32;wm++)
{
OLED_WrDat(F32x32[adder]);
adder += 1;
}
OLED_Set_Pos(x , y+2);
for(wm = 0;wm < 32;wm++)
{
OLED_WrDat(F32x32[adder]);
adder += 1;
}
OLED_Set_Pos(x,y+3 );
for(wm = 0;wm <32;wm++)
{
OLED_WrDat(F32x32[adder]);
adder += 1;
}
}
/*********************OLED写数据************************************/
void OLED_WrDat(unsigned char IIC_Data)
{
OLED_IIC_Start();
Write_IIC_Byte(0x78);
Write_IIC_Byte(0x40); //write data
Write_IIC_Byte(IIC_Data);
OLED_IIC_Stop();
} |