Const expression expected

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
Hanex
Posts: 1
Joined: 28 Mar 2020 11:22

Const expression expected

#1 Post by Hanex » 15 Mar 2022 16:48

Hi

What am i doing wrong here :

void RGBLCD1602_command(unsigned int value)
{
unsigned int lcddata[3] = {0x80 , value};
RGBLCD1602_send( LCD_ADDRESS , lcddata , 2);
}

I get a compiler error :

Const expression expected
Too many initializers

Thanks,

Marcel

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Const expression expected

#2 Post by filip » 16 Mar 2022 09:52

Hi,

Can you please attach a minimal project that represents this issue ?

Regards,
Filip.

Post Reply

Return to “mikroC PRO for PIC General”