|
Например, я вывожу текст на графический индикатор (T6369C) так...
Посмотрите, как происходит обращение к переданному массиву в параметрах функции...
Правда, это на KEIL для 51-го... Но это не важно...
// Вывод...
OutTextXY(0, 6, "ABCDEFGHIJKLMNOPQRST");
// Реализация функции...
void OutTextXY(unsigned char x, unsigned char y, unsigned char str[])
{
unsigned char idata i;
unsigned int idata address;
address = x * 40 + y;
WriteDataLCD(address);
WriteDataLCD(_iror_(address, 8));
WriteCommandLCD(0x24);
i = 0;
while(str[i])
{
if(str[i] >= 0x80) WriteDataLCD(str[i]);
else WriteDataLCD(str[i] - 0x20);
WriteCommandLCD(0xc0);
i++;
}
}
E-mail: info@telesys.ru