Code: Select all
Illegal pointer conversion
Code: Select all
#define PGM_P char flash *
#define PROGMEM flash
#define flash const
#define PSTR(x) x
#define EEMEM eeprom
#define pgm_read_byte(x) (*((uint8 flash *)(x)))
#define pgm_read_word(x) (*((uint16 flash *)(x)))
// ************************************************ ******************************
// Display the string of characters on the LCD-controller in the current location of the program memory.
// If the string is out of the screen in the current line, the balance is transferred to the next line.
// Message: a pointer to a string in program memory. 0x00 - a sign of the end of the line.
void nlcd_PrintF(unsigned char * message)
{
unsigned char const data_1;
// while (data_=pgm_read_byte(message), data_)
data_1=pgm_read_byte(message);
while (data_1)
{
nlcd_Putc(data_1);
message++;
}
}