📄 ssd0323.c
字号:
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00,0xf0,0x0f,0x00,0x00,0x0f,0x00,0xf0,0x0f,0x00,0xf0,0x0f,0x00,0xff,0x0f,0xf0,0xf0,0xff,0x00,0xf0,0xff,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0xff,0xff,0x00,0x00,0x00,0xf0,0xff,0x0f,0x00,0x00,0x00,0xff,0xff,0x0f,0x0f,0xf0,0xff,0x0f,0xff,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0xf0,0xff,0x00,0x00,0xff,0x0f,0x00,0xf0,0xff,0x00,0xf0,0xff,0xff,0x00,0xff,0x0f,0x00,0xf0,0xff,0xff,0x00,0xf0,0x00,0x00,0x00,0xff,0x0f,0x00,0xf0,0xff,0x00,0x00,0xf0,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x0f,0x00,0x0f,0xf0,0x00,0xf0,0x00,0x0f,0x00,0x0f,0x00,0x0f,0xf0,0x00,0x0f,0xf0,0x00,0x00,0x00,0xf0,0x00,0xf0,0x0f,0x00,0xf0,0x00,0xf0,0x00,0x0f,0x00,0x0f,0x00,0xf0,0x0f,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x0f,0x00,0x0f,0xf0,0x00,0xf0,0x00,0x0f,0x00,0x0f,0x00,0x0f,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0xf0,0x00,0xf0,0xf0,0x00,0xf0,0x00,0x00,0x00,0x0f,0x00,0x0f,0x00,0xf0,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x0f,0x00,0x0f,0xf0,0x00,0xf0,0x00,0xf0,0xf0,0x00,0x00,0x0f,0x00,0x00,0xf0,0x0f,0x0f,0x00,0xff,0xff,0x00,0xf0,0x00,0x0f,0x00,0xff,0x00,0x00,0x0f,0x00,0x00,0x00,0xf0,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x0f,0x00,0x0f,0xf0,0x0f,0xf0,0x00,0xf0,0xff,0x00,0x00,0xf0,0x00,0x00,0x0f,0xf0,0x0f,0xf0,0x00,0xf0,0x00,0xf0,0x00,0x0f,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x0f,0x00,0x0f,0xf0,0xf0,0x0f,0x00,0x0f,0x00,0x0f,0x00,0xf0,0x00,0x00,0x0f,0x00,0x0f,0xf0,0x00,0x00,0x00,0xf0,0x00,0xf0,0xf0,0x00,0x00,0x00,0x00,0x0f,0x00,0x00,0xf0,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x0f,0x00,0x0f,0xf0,0x00,0x00,0x00,0x0f,0x00,0x0f,0x00,0xf0,0x00,0x00,0x0f,0x00,0x0f,0xf0,0x00,0xf0,0x00,0xf0,0xff,0x0f,0xf0,0x00,0x00,0x00,0x00,0xf0,0x00,0x00,0xf0,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x0f,0x00,0x0f,0x00,0x0f,0xf0,0x00,0x0f,0x00,0x0f,0x00,0xf0,0x00,0x00,0x0f,0x00,0x0f,0xf0,0x00,0xf0,0x00,0xf0,0x00,0x00,0xf0,0x00,0xf0,0x00,0x00,0x00,0x0f,0x00,0xf0,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0xf0,0xff,0x00,0x00,0xf0,0xff,0x00,0xf0,0xff,0x00,0x00,0xf0,0x00,0x00,0xf0,0xff,0x00,0x00,0xff,0x0f,0x00,0xff,0x0f,0x00,0x00,0xff,0x0f,0x00,0xff,0xff,0x0f,0x00,0xff,0x0f,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
};
void delay(unsigned int param)
{
int i;
for(;param>0;param--)
for(i=0;i<1200;i++);
}
void delayms(unsigned char msec)
{
unsigned int i;
for( ; msec>0 ; msec--)
{
for( i=0 ; i<300 ; i++) ;
}
}
void delays(unsigned int sec)
{
unsigned char i;
unsigned int j;
for( ; sec>0 ; sec--)
{
for( i=0 ; i<200 ; i++)
{
for( j=0 ; j<999 ; j++) ;
}
}
}
void delay10ms(unsigned int second) {
unsigned int i;
while(second--!=0)
for (i=0; i<840; i++)
;
}
void data_out_char(unsigned char set_db) //serial interface---write display data
{
unsigned char mask;
int j;
RST=1;_CS=1;RS=1; SCLK=1;
for(j=0, mask=0x80; j<8; j++, mask>>=1 )
{
RST=1;_CS=0;RS=1;
SCLK=0;
if( (set_db & mask) != 0 )
SDIN=1;
else
SDIN=0;
RST=1;_CS=0;RS=1; SCLK=1;
}
RST=1;_CS=1;RS=1; SCLK=1;
}
void command_out1(unsigned char set_db) //serial interface---write command byte
{
unsigned char mask;
int j;
RST=1;_CS=1;RS=0; SCLK=1;
for(j=0, mask=0x80; j<8; j++, mask>>=1 )
{
RST=1;_CS=0;RS=0;
SCLK=0;
if( (set_db & mask) != 0 )
SDIN=0x01;
else
SDIN=0x00;
RST=1;_CS=0;RS=0; SCLK=1;
}
RST=1;_CS=1;RS=0; SCLK=1;
}
void command_out2(unsigned char set_db) //serial interface---write command byte
{
unsigned char mask;
int j;
RST=1;_CS=1;RS=0; SCLK=1;
for(j=0, mask=0x80; j<8; j++, mask>>=1 )
{
RST=1;_CS=0;RS=0;
SCLK=0;
if( (set_db & mask) != 0 )
SDIN=0x01;
else
SDIN=0x00;
RST=1;_CS=0;RS=0; SCLK=1;
}
RST=1;_CS=1;RS=0; SCLK=1;
}
void system_init(void)
{
P0=0xff;P1=0xff;
RST=1;_CS=1;
RST=0;
delayms(50);
RST=1;
delayms(50);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -