lcdf.c~
来自「AVR driver for laser LED」· C~ 代码 · 共 35 行
C~
35 行
void lcdpstr(int adcr[20])
{
//putchar(0x03); //lcd_setxy,(x y)
//putchar(0x2C);
//putchar(0x02); // comand1 len
//putchar(20); // LCD X coordinate
//putchar(100); // LCD Y coordinate
//putchar(0x0D); // LCD comand end
delay_ms(100);
putchar(0x0A); //lcd_str,(str, color, font inverting)
//putchar(0x2C);
putchar (strlen(adcr)+1); //comand1 len
puts (adcr);
//putchar(0x2C);
//putchar(0x02); //comand2 len
//putchar(0x55); //colour
//putchar(0xF5); //colour
//putchar(0x2C);
//putchar(0x02); //conand3 len
//putchar(0x01); //font
//putchar(0x00); //inverting
putchar(0x0D); //LCD comand end
for (i=0; i<20; i++)
{
buffer[i]=0;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?