Добрый вечер!
Опять возник вопрос к знающим людям.
Вывожу слова но они в перемешку.
Прошу посмотрите что не так?
// запись в cgram и печать в строку
void stroka_rus(const void *text, uint8_t lines, uint8_t rows,uint8_t x,uint8_t y)
{
LCDcommand(0x40);
Busy_flag();
CPORT|=(1<<RS);
const uint8_t *ptext = text;
for (uint8_t i=0; i<lines; i++)
for(uint8_t j=0; j<rows; j++)
Send_byte(ptext[i*rows + j]);
CPORT&=~(1<<RS);
LCDGotoXY(x,y);
uint8_t i=0x00;
for(i=0x00;i<lines;i++)
LCDdata(i);
}
while(1)
{
stroka_rus(text_1,6,8,4,0);
clear();
stroka_rus(text_2,8,8,3,1);
}
https://disk.yandex.ru/i/lun55DhIp2JBmw вот видео в протеусе
Добавлено after 2 minutes 21 second:
void clear(void)
{
LCDcommand(0x40);
Busy_flag();
CPORT|=(1<<RS);
const uint8_t clr[8][8]={};
const uint8_t *pclr = clr;
for(uint8_t i=0; i<8; i++)
for(uint8_t h=0; h<8; h++)
Send_byte(pclr[i*8 + h]);
CPORT&=~(1<<RS);
}