Skip to main content
antonius
Associate III
Question

error: #18: expected a ")" ?

Dear Members,

I got this error: #18: expected a ")"  on this line :

LCD_SendCommand(lcd_addr, 0b00110000);

")" is already there, what's the issue ??

Thanks

This topic has been closed for replies.

5 replies

After Forever
Senior III

Check if lcd_addr is correctly defined. But most likely there is an error in one of the previous lines (or included files) which causes an error to that correct line. Check for unterminated by ";" lines, unterminated quotation marks or parenthesis.

Tesla DeLorean
Guru

Binary is not accepted by most compilers.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
antonius
antoniusAuthor
Associate III

so better be in hex ?

antonius
antoniusAuthor
Associate III

LCD_SendCommand(lcd_addr, 0x30h); ?

Tesla DeLorean
Guru

Lose the h, you're programming in C​

​

0x30​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..