I have a program in AVR Studio V4 with the following code:
#include <avr/pgmspace.h>
void nlcd_Putc(unsigned char c)
{
unsigned char i;
if (c>127) c=c-64;
for (i = 0; i < 5; i++ )
{
nlcd_SendByte(DATA_LCD_MODE,pgm_read_byte(&(nlcd_Font[c-32][i])));
}
nlcd_SendByte(DATA_LCD_MODE,0x00);
}
So when i want to run this code in MiKroC for AVR i get the following error:
128 324 Undeclared identifier 'pgm_read_byte' in expression MyProject.c
Should I add the header avr/pgmspace.h
To MiKroc For AVR, or what is the equivalent header to avr/pgmspace.h
in Mikroc For AVR?
Thanks a lot.
by addinf this codes to header :